Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 6 additions & 0 deletions src/zepben/eas/lib/generated_graphql_client/input_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions test/test_eas_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
Loading