-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathprogress_bar.py
38 lines (27 loc) · 861 Bytes
/
progress_bar.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# -*- coding: utf-8 -*-
# @Time : 2/4/2023 6:42 PM
# @Author : Paulo Radatz
# @Email : [email protected]
# @File : progress_bar.py
# @Software: PyCharm
import py_dss_interface
import os
import pathlib
import pandas as pd
script_path = os.path.dirname(os.path.abspath(__file__))
dss_file = pathlib.Path(script_path).joinpath("feeders", "123Bus", "IEEE123Master.dss")
dss = py_dss_interface.DSS()
dss.text(f"set DefaultBaseFrequency=60")
dss.text(f"compile [{dss_file}]")
dss.text(f"New EnergyMeter.Feeder Line.L115 1")
dss.text(f"Buscoords Buscoords.dat")
dss.text(f"set maxiteration=100")
dss.text("set mode=daily")
dss.text("set number=500000")
# dss.dssprogress_close()
# dss.dssprogress_pct_progress(50)
# dss.dssprogress_show()
# dss.dssprogress_pct_progress(50)
# dss.text("solve")
#
# dss.dssprogress_caption(f'Running QSTS simulation')