Skip to content
Draft
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
4 changes: 3 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# EAS Python client
## [0.28.0] - UNRELEASED
### Breaking Changes
* None.
* For `CandidateGenerationConfig`, replaced `voltage_delta_avg_threshold` with `average_voltage_spread_threshold`, which serves the same purpose but is
in volts instead of voltage per-unit.
* EAS must support this change in the GraphQL schema (`v2.10.0` and above).

### New Features
* None.
Expand Down
4 changes: 2 additions & 2 deletions src/zepben/eas/client/eas_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,11 +386,11 @@ def work_package_config_to_json(self, work_package: WorkPackageConfig) -> dict:
"candidateGeneration": work_package.intervention.candidate_generation and {
"type": work_package.intervention.candidate_generation.type.name,
"interventionCriteriaName": work_package.intervention.candidate_generation.intervention_criteria_name,
"voltageDeltaAvgThreshold": work_package.intervention.candidate_generation.voltage_delta_avg_threshold,
"averageVoltageSpreadThreshold": work_package.intervention.candidate_generation.average_voltage_spread_threshold,
"voltageUnderLimitHoursThreshold": work_package.intervention.candidate_generation.voltage_under_limit_hours_threshold,
"voltageOverLimitHoursThreshold": work_package.intervention.candidate_generation.voltage_over_limit_hours_threshold,
"tapWeightingFactorLowerThreshold": work_package.intervention.candidate_generation.tap_weighting_factor_lower_threshold,
"tapWeightingFactorUpperThreshold": work_package.intervention.candidate_generation.tap_weighting_factor_upper_threshold,
"tapWeightingFactorUpperThreshold": work_package.intervention.candidate_generation.tap_weighting_factor_upper_threshold
},
"allocationCriteria": work_package.intervention.allocation_criteria,
"specificAllocationInstance": work_package.intervention.specific_allocation_instance,
Expand Down
8 changes: 6 additions & 2 deletions src/zepben/eas/client/work_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,9 +767,13 @@ class CandidateGenerationConfig:
base work package run. Only used when type is CRITERIA.
"""

voltage_delta_avg_threshold: Optional[float] = None
average_voltage_spread_threshold: Optional[int] = None
"""
The threshold for average deviation in voltage p.u. across the transformer. Only used when type is TAP_OPTIMIZATION.
The threshold for average voltage spread under the transformer over the year, in volts.
Voltage spread at each timestep is calculated by taking the difference between the maximum and minimum voltage over
the nodes under the transformer, for each phase, then taking the maximum of that difference across all phases.
When the average voltage spread exceeds this threshold, it indicates that the transformer is experiencing a
significant voltage swing that may impact system stability. Only used when type is CRITERIA.
"""

voltage_under_limit_hours_threshold: Optional[int] = None
Expand Down