Skip to content

Commit 944a8ef

Browse files
committed
Update switch name pattern to specify fuses and disconnectors
Signed-off-by: Kurt Greaves <kurt.greaves@zepben.com>
1 parent 7b7b9f5 commit 944a8ef

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

src/zepben/examples/export_open_dss_model.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ def download_generated_model(eas_client: EasClient, output_file_name: str, model
5858

5959
def test_open_dss_export(export_file_name: str):
6060
eas_client = EasClient(
61-
c["host"],
62-
443,
61+
host=c["host"],
62+
port=443,
6363
access_token=c["access_token"]
6464
)
6565

@@ -72,17 +72,21 @@ def test_open_dss_export(export_file_name: str):
7272
year=2025,
7373
feeder="<FEEDER_MRID>",
7474
load_time=TimePeriod(
75-
datetime.strptime("2024-04-01T00:00:00", "%Y-%m-%dT%H:%M:%S"),
76-
datetime.strptime("2025-04-01T00:00:00", "%Y-%m-%dT%H:%M:%S")
75+
start_time=datetime.fromisoformat("2024-04-01T00:00"),
76+
end_time=datetime.fromisoformat("2025-04-01T00:00")
7777
),
7878
generator_config=GeneratorConfig(
7979
model=ModelConfig(
8080
meter_placement_config=MeterPlacementConfig(
8181
feeder_head=True,
8282
dist_transformers=True,
83+
# Include meters for any switch that has a name that starts with 'LV Circuit Head' and is a Fuse or Disconnector
8384
switch_meter_placement_configs=[SwitchMeterPlacementConfig(
8485
meter_switch_class=SwitchClass.DISCONNECTOR,
8586
name_pattern="LV Circuit Head.*"
87+
), SwitchMeterPlacementConfig(
88+
meter_switch_class=SwitchClass.FUSE,
89+
name_pattern="LV Circuit Head.*"
8690
)]
8791
),
8892
vmax_pu=1.2,

0 commit comments

Comments
 (0)