From 71ea71f4b98129e66ae7586015a6ad1f613aad66 Mon Sep 17 00:00:00 2001 From: vince Date: Mon, 4 May 2026 13:36:04 +1000 Subject: [PATCH] updated Signed-off-by: vince --- changelog.md | 1 + src/zepben/eas/lib/generated_graphql_client/input_types.py | 6 ++++++ test/test_eas_client.py | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/changelog.md b/changelog.md index 5fd988d..3036ce0 100644 --- a/changelog.md +++ b/changelog.md @@ -28,6 +28,7 @@ ### Enhancements * EasClient has new `query` and `mutation` methods that will accept `Query` and `Mutation` objects respectively. * Available queries and mutations can be found as `@classmethods` on `Queries` and `Mutations`. +* Added support for `negligibleImpedanceMinHvThreshold` and `negligibleImpedanceMinLvThreshold` in `ModelConfig`. ### Fixes * Patched ariadne-codegen while waiting for release of dependent code. diff --git a/src/zepben/eas/lib/generated_graphql_client/input_types.py b/src/zepben/eas/lib/generated_graphql_client/input_types.py index 8105524..315159c 100644 --- a/src/zepben/eas/lib/generated_graphql_client/input_types.py +++ b/src/zepben/eas/lib/generated_graphql_client/input_types.py @@ -396,6 +396,12 @@ class HcModelConfigInput(BaseModel): collapse_negligible_impedances: Optional[bool] = Field( alias="collapseNegligibleImpedances", default=None ) + negligible_impedance_min_hv_threshold: Optional[float] = Field( + alias="negligibleImpedanceMinHvThreshold", default=None + ) + negligible_impedance_min_lv_threshold: Optional[float] = Field( + alias="negligibleImpedanceMinLvThreshold", default=None + ) collapse_swer: Optional[bool] = Field(alias="collapseSWER", default=None) combine_common_impedances: Optional[bool] = Field( alias="combineCommonImpedances", default=None diff --git a/test/test_eas_client.py b/test/test_eas_client.py index 49553c5..24c4833 100644 --- a/test/test_eas_client.py +++ b/test/test_eas_client.py @@ -724,6 +724,8 @@ def run_opendss_export_request_handler(request): "simplifyNetwork": False, "collapseLvNetworks": False, "collapseNegligibleImpedances": False, + "negligibleImpedanceMinHvThreshold": 0.12, + "negligibleImpedanceMinLvThreshold": 0.34, "combineCommonImpedances": False, "feederScenarioAllocationStrategy": "ADDITIVE", "closedLoopVRegEnabled": True, @@ -874,6 +876,8 @@ def run_opendss_export_request_handler(request): simplify_network=False, collapse_lv_networks=False, collapse_negligible_impedances=False, + negligible_impedance_min_hv_threshold=0.12, + negligible_impedance_min_lv_threshold=0.34, combine_common_impedances=False, feeder_scenario_allocation_strategy=HcFeederScenarioAllocationStrategy.ADDITIVE, closed_loop_v_reg_enabled=True,