gridappsd-python 2026.2.1__py3-none-any.whl → 2026.2.1a1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gridappsd/simulation.py +22 -8
- {gridappsd_python-2026.2.1.dist-info → gridappsd_python-2026.2.1a1.dist-info}/METADATA +1 -1
- {gridappsd_python-2026.2.1.dist-info → gridappsd_python-2026.2.1a1.dist-info}/RECORD +5 -5
- {gridappsd_python-2026.2.1.dist-info → gridappsd_python-2026.2.1a1.dist-info}/WHEEL +1 -1
- {gridappsd_python-2026.2.1.dist-info → gridappsd_python-2026.2.1a1.dist-info}/entry_points.txt +0 -0
gridappsd/simulation.py
CHANGED
|
@@ -42,11 +42,11 @@ class ConfigBase:
|
|
|
42
42
|
|
|
43
43
|
@dataclass
|
|
44
44
|
class ModelCreationConfig(ConfigBase):
|
|
45
|
-
load_scaling_factor:
|
|
45
|
+
load_scaling_factor: float = field(default=1)
|
|
46
46
|
schedule_name: str = field(default="ieeezipload")
|
|
47
|
-
z_fraction:
|
|
48
|
-
i_fraction:
|
|
49
|
-
p_fraction:
|
|
47
|
+
z_fraction: float = field(default=0)
|
|
48
|
+
i_fraction: float = field(default=1)
|
|
49
|
+
p_fraction: float = field(default=0)
|
|
50
50
|
randomize_zipload_fractions: bool = field(default=False)
|
|
51
51
|
use_houses: bool = field(default=False)
|
|
52
52
|
|
|
@@ -56,14 +56,28 @@ class ModelCreationConfig(ConfigBase):
|
|
|
56
56
|
|
|
57
57
|
@dataclass
|
|
58
58
|
class SimulationArgs(ConfigBase):
|
|
59
|
-
start_time:
|
|
60
|
-
duration:
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
start_time: int = field(default=1655321830)
|
|
60
|
+
duration: int = field(default=300)
|
|
61
|
+
publish_period: int = field(default=None)
|
|
62
|
+
interval: int = field(default=None)
|
|
63
63
|
run_realtime: bool = field(default=True)
|
|
64
64
|
pause_after_measurements: bool = field(default=False)
|
|
65
65
|
simulation_name: str = field(default="ieee13nodeckt")
|
|
66
66
|
|
|
67
|
+
def __post_init_(self):
|
|
68
|
+
if self.run_realtime:
|
|
69
|
+
self.interval = 1
|
|
70
|
+
if not self.publish_period:
|
|
71
|
+
self.publish_period = 3
|
|
72
|
+
else:
|
|
73
|
+
if not self.interval:
|
|
74
|
+
self.interval = 60
|
|
75
|
+
if not self.publish_period:
|
|
76
|
+
self.publish_period = 60
|
|
77
|
+
if self.publish_period < self.interval:
|
|
78
|
+
raise RuntimeError("A simulation's publishing_period cannot be less than the simulation's timestep "
|
|
79
|
+
"interval. please make the publishing_period >= interval!")
|
|
80
|
+
|
|
67
81
|
|
|
68
82
|
@dataclass
|
|
69
83
|
class SimulatorArgs(ConfigBase):
|
|
@@ -9,12 +9,12 @@ gridappsd/houses.py,sha256=9KD3H23qKxjJ0ub0-J2wzo4AhWMu3ulruT-e_cMUwTU,3567
|
|
|
9
9
|
gridappsd/json_extension.py,sha256=0ByHmNedUDs2W2Ovg4QW-pFErE0OysDxBuYqGof3SUI,2843
|
|
10
10
|
gridappsd/loghandler.py,sha256=Ou4CfVrfAUr3N0zM8i49e0uOn1f81Iu1y8zvx_2ZgQc,2716
|
|
11
11
|
gridappsd/register_app.py,sha256=Jirf-03ufoZRPxyaNy0uMfXJpzGoN_f_P7xiTF9I-kg,2535
|
|
12
|
-
gridappsd/simulation.py,sha256=
|
|
12
|
+
gridappsd/simulation.py,sha256=K7kWEJiMqMRsMlckt5jznBMW8c19IjQm4Xm_KqC0gJs,13621
|
|
13
13
|
gridappsd/timeseries.py,sha256=gU_4hYezoTVlP4KbLg-OUXNJ2MbM0k8PXn-O0wINlMQ,3143
|
|
14
14
|
gridappsd/topics.py,sha256=elkAfNPZWkFLtFRYv58hLu4M2uDFfv5oVw35sxR732k,12053
|
|
15
15
|
gridappsd/utils.py,sha256=M8vNYOdCj9cn2YnIGo8Twa7AneRxyT6G6tUsqu5C8BI,3170
|
|
16
16
|
gridappsd/field_interface/__init__.py,sha256=br3JZKQvMOykeKtUfbFAXQuhPd-t2EjdMUkCn8EH18I,2214
|
|
17
|
-
gridappsd_python-2026.2.
|
|
18
|
-
gridappsd_python-2026.2.
|
|
19
|
-
gridappsd_python-2026.2.
|
|
20
|
-
gridappsd_python-2026.2.
|
|
17
|
+
gridappsd_python-2026.2.1a1.dist-info/METADATA,sha256=8WtecQ_WeJMx7JktBxF5YG1cS_AXxpINrF6CGq-CxH0,11239
|
|
18
|
+
gridappsd_python-2026.2.1a1.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
|
|
19
|
+
gridappsd_python-2026.2.1a1.dist-info/entry_points.txt,sha256=s9EgWPiNAeDNWa5-5hA5CKaYLbl0DiAt6yzIUtMLYvQ,97
|
|
20
|
+
gridappsd_python-2026.2.1a1.dist-info/RECORD,,
|
{gridappsd_python-2026.2.1.dist-info → gridappsd_python-2026.2.1a1.dist-info}/entry_points.txt
RENAMED
|
File without changes
|