Skip to content

Commit 4e00036

Browse files
committed
todo changelog and test question mark
Signed-off-by: vince <vince.white@zepben.com>
1 parent f9a4b50 commit 4e00036

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* `rating_threshold`
1414
* `simplify_plsi_threshold`
1515
* `emerg_amp_scaling`
16+
* Added optional field `inverterControlConfig` to `ModelConfig`. This `PVVoltVARVoltWattConfig` allows the configuration of advanced inverter control profiles.
1617

1718
### Enhancements
1819
* None.

src/zepben/eas/client/eas_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def generator_config_to_json(self, generator_config: Optional[GeneratorConfig])
246246
"simplifyPLSIThreshold": generator_config.model.simplify_plsi_threshold,
247247
"emergAmpScaling": generator_config.model.emerg_amp_scaling,
248248
"inverterControlConfig": generator_config.model.inverter_control_config and {
249-
"cutOffDate": generator_config.model.inverter_control_config.cut_off_date.replace(microsecond=0, tzinfo=None).isoformat(), # remove any timezone information
249+
"cutOffDate": generator_config.model.inverter_control_config.cut_off_date and generator_config.model.inverter_control_config.cut_off_date.isoformat(),
250250
"beforeCutOffProfile": generator_config.model.inverter_control_config.beforeCutOffProfile,
251251
"afterCutOffProfile": generator_config.model.inverter_control_config.afterCutOffProfile
252252
}

src/zepben/eas/client/work_package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ class PVVoltVARVoltWattConfig:
216216
If supplied, the "commissionedDate" of the equipment is compared against this date, equipment that do not have a
217217
"commissionedDate" will receive the [beforeCutOffProfile]. If null, the [afterCutOffProfile] profile is applied to all equipment."""
218218

219-
beforeCutOffProfile: Optional[str] = None,
219+
beforeCutOffProfile: Optional[str] = None
220220
"""Optional name of the profile to apply to equipment with a "commissionDate" before [cutOffDate].
221221
If null the equipment will be translated into a regular Generator the rather a PVSystem."""
222222

0 commit comments

Comments
 (0)