Skip to content

Commit eb8a2ea

Browse files
committed
rename
Signed-off-by: vince <vince.white@zepben.com>
1 parent bbebd59 commit eb8a2ea

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

changelog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# EAS Python client
22
## [0.23.0] - UNRELEASED
33
### Breaking Changes
4-
* None.
4+
* Renamed the parameter `calibration_id` to `calibration_name` for the following methods `get_transformer_tap_settings` and `async_get_transformer_tap_settings`. This better reflects that
5+
this parameter is the user supplied calibration name rather than EAS's internal calibration run ID.
56

67
### New Features
78
* Added optional fields to `ModelConfig` to control network simplification: `simplify_network`, `collapse_negligible_impedances`, and `combine_common_impedances`.

src/zepben/eas/client/eas_client.py

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -871,8 +871,7 @@ def run_hosting_capacity_calibration(self, calibration_name: str, local_calibrat
871871
transformer_tap_settings: Optional[str] = None,
872872
generator_config: Optional[GeneratorConfig] = None):
873873
"""
874-
Send request to run hosting capacity calibration
875-
:param calibration_name: A string representation of the calibration name
874+
Send request to run hosting capacity calibrationbration name
876875
:param local_calibration_time: A datetime representation of the calibration time, in the timezone of your pqv data ("model time").
877876
:param feeders: A list of feeder ID's to run the calibration over. If not supplied then the calibration is run over all feeders in the network.
878877
:param transformer_tap_settings: A set of transformer tap settings to apply before running the calibration work package.
@@ -953,15 +952,15 @@ async def async_run_hosting_capacity_calibration(self, calibration_name: str,
953952
def get_hosting_capacity_calibration_run(self, id: str):
954953
"""
955954
Retrieve information of a hosting capacity calibration run
956-
:param id: The calibration ID
955+
:param id: The calibration run ID
957956
:return: The HTTP response received from the Evolve App Server after requesting calibration run info
958957
"""
959958
return get_event_loop().run_until_complete(self.async_get_hosting_capacity_calibration_run(id))
960959

961960
async def async_get_hosting_capacity_calibration_run(self, id: str):
962961
"""
963962
Retrieve information of a hosting capacity calibration run
964-
:param id: The calibration ID
963+
:param id: The calibration run ID
965964
:return: The HTTP response received from the Evolve App Server after requesting calibration run info
966965
"""
967966
with warnings.catch_warnings():
@@ -1038,19 +1037,25 @@ async def async_get_hosting_capacity_calibration_sets(self):
10381037
else:
10391038
response.raise_for_status()
10401039

1041-
def get_transformer_tap_settings(self, calibration_id: str, feeder: Optional[str] = None,
1040+
def get_transformer_tap_settings(self, calibration_name: str, feeder: Optional[str] = None,
10421041
transformer_mrid: Optional[str] = None):
10431042
"""
1044-
Retrieve distribution transformer tap settings from a calibration set in the hosting capacity input database.
1043+
Retrieve distribution transformer tap settings from a calibration set in the hosting capacity input database
1044+
:param calibration_name: The (user supplied)name of the calibration run to retrieve transformer tap settings from
1045+
:param feeder: An optional filter to apply to the returned list of transformer tap settings
1046+
:param transformer_mrid: An optional filter to return only the transformer tap settings for a particular transfomer mrid
10451047
:return: The HTTP response received from the Evolve App Server after requesting transformer tap settings for the calibration id
10461048
"""
10471049
return get_event_loop().run_until_complete(
1048-
self.async_get_transformer_tap_settings(calibration_id, feeder, transformer_mrid))
1050+
self.async_get_transformer_tap_settings(calibration_name, feeder, transformer_mrid))
10491051

1050-
async def async_get_transformer_tap_settings(self, calibration_id: str, feeder: Optional[str] = None,
1052+
async def async_get_transformer_tap_settings(self, calibration_name: str, feeder: Optional[str] = None,
10511053
transformer_mrid: Optional[str] = None):
10521054
"""
1053-
Retrieve distribution transformer tap settings from a calibration set in the hosting capacity input database.
1055+
Retrieve distribution transformer tap settings from a calibration set in the hosting capacity input database
1056+
:param calibration_name: The (user supplied)name of the calibration run to retrieve transformer tap settings from
1057+
:param feeder: An optional filter to apply to the returned list of transformer tap settings
1058+
:param transformer_mrid: An optional filter to return only the transformer tap settings for a particular transfomer mrid
10541059
:return: The HTTP response received from the Evolve App Server after requesting transformer tap settings for the calibration id
10551060
"""
10561061
with warnings.catch_warnings():
@@ -1071,7 +1076,7 @@ async def async_get_transformer_tap_settings(self, calibration_id: str, feeder:
10711076
}
10721077
""",
10731078
"variables": {
1074-
"calibrationName": calibration_id,
1079+
"calibrationName": calibration_name,
10751080
"feeder": feeder,
10761081
"transformerMrid": transformer_mrid
10771082
}

0 commit comments

Comments
 (0)