Skip to content

Commit

Permalink
Enable caps when calling snapshot_run and get_y
Browse files Browse the repository at this point in the history
  • Loading branch information
jliang9 authored Sep 14, 2022
1 parent 48398fd commit 8f81a4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions LocalFeeder/dss_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def get_y_matrix_file(dss):
dss.run_command('batchedit load..* enabled=false')
dss.run_command('batchedit generator..* enabled=false')
dss.run_command('batchedit pvsystem..* enabled=false')
dss.run_command('Batchedit Capacitor..* enabled=yes')
dss.run_command('batchedit storage..* enabled=false')
dss.run_command('CalcVoltageBases')
dss.run_command('set maxiterations=20')
Expand Down Expand Up @@ -117,6 +118,7 @@ def snapshot_run(dss):
dss.run_command('Batchedit Isource..* enabled=yes')
dss.run_command('Batchedit Generator..* enabled=yes')
dss.run_command('Batchedit PVsystem..* enabled=yes')
dss.run_command('Batchedit Capacitor..* enabled=yes')
dss.run_command('Batchedit Storage..* enabled=no')
dss.run_command('CalcVoltageBases')
dss.run_command('solve mode=snapshot')
Expand Down

0 comments on commit 8f81a4f

Please sign in to comment.