power-grid-model-ds 1.4.1__py3-none-any.whl → 1.4.2__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.
@@ -107,7 +107,7 @@ class PowerGridModelInterface:
107
107
 
108
108
  Returns output of the power flow calculation (also stored in self.output_data)
109
109
  """
110
- self.model = self.model or self._setup_model()
110
+ self.model = self.model or self.setup_model()
111
111
 
112
112
  self.output_data = self.model.calculate_power_flow(
113
113
  calculation_method=calculation_method, update_data=update_data, **kwargs
@@ -146,7 +146,7 @@ class PowerGridModelInterface:
146
146
 
147
147
 
148
148
  """
149
- self.model = self.model or self._setup_model()
149
+ self.model = self.model or self.setup_model()
150
150
  self.model.update(update_data=update_data)
151
151
 
152
152
  def update_grid(self) -> None:
@@ -166,7 +166,8 @@ class PowerGridModelInterface:
166
166
  def _match_dtypes(first_dtype: np.dtype, second_dtype: np.dtype):
167
167
  return list(set(first_dtype.names).intersection(set(second_dtype.names))) # type: ignore[arg-type]
168
168
 
169
- def _setup_model(self):
169
+ def setup_model(self):
170
+ """Setup the PowerGridModel with the input data."""
170
171
  self._input_data = self._input_data or self.create_input_from_grid()
171
172
  self.model = PowerGridModel(self._input_data, system_frequency=self.system_frequency)
172
173
  return self.model
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: power-grid-model-ds
3
- Version: 1.4.1
3
+ Version: 1.4.2
4
4
  Summary: Power Grid Model extension which provides a grid data structure for simulation and analysis
5
5
  Author-email: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>
6
6
  License: MPL-2.0
@@ -9,7 +9,7 @@ power_grid_model_ds/graph_models.py,sha256=so5niaXJqtuL0hUmtSPxV6Bven5c8DfAlF3MM
9
9
  power_grid_model_ds/visualizer.py,sha256=W9GfWuM-CrDTnniCj1y-lxSt6IQkLJViW5aPC4syauw,411
10
10
  power_grid_model_ds/_core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  power_grid_model_ds/_core/fancypy.py,sha256=EKH1gIACBPF9lUFI4kUPZJ_peS6B_udsLTs-PysdIns,2065
12
- power_grid_model_ds/_core/load_flow.py,sha256=8GYzHw2Uxlzo4pZbjgOXELAP69_0o0yoav4yprZRJ_s,6247
12
+ power_grid_model_ds/_core/load_flow.py,sha256=B5HKMa87OrzTcOteN-RLGzsj5XrTiw7lhpXfqPj6yys,6304
13
13
  power_grid_model_ds/_core/data_source/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  power_grid_model_ds/_core/data_source/generator/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  power_grid_model_ds/_core/data_source/generator/grid_generators.py,sha256=knAtQOhdUru3z6Kzc0rjSE9PPeC4_c7SUVVLqTi3ZBU,2972
@@ -75,8 +75,8 @@ power_grid_model_ds/_core/visualizer/layout/header.py,sha256=el-5SlWIPeEbZZLbi3v
75
75
  power_grid_model_ds/_core/visualizer/layout/legenda.py,sha256=8JTrMRgaYRaSIXAEoM0b3PgX7AYvW0_fHuYg8nY4y0g,2161
76
76
  power_grid_model_ds/_core/visualizer/layout/search_form.py,sha256=4LPU6MjD3QEIeBEOOWBvV5-GyLMqNYWyKcUa_oWScCs,2002
77
77
  power_grid_model_ds/_core/visualizer/layout/selection_output.py,sha256=fuPAdG5XmTj2E0oQ8w_tp9PGbB8bJ5fguteLtnM1EDg,534
78
- power_grid_model_ds-1.4.1.dist-info/licenses/LICENSE,sha256=GpbnG1pNl-ORtSP6dmHeiZvwy36UFli6MEZy1XlmBqo,14906
79
- power_grid_model_ds-1.4.1.dist-info/METADATA,sha256=QUIeIIF6b1dRYlbRRFR6y3kk8k1SYdGimezjoM2xfcU,8873
80
- power_grid_model_ds-1.4.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
81
- power_grid_model_ds-1.4.1.dist-info/top_level.txt,sha256=nJa103Eqvm5TESYEKPFVImfLg_ugGOBznikrM-rZQZg,20
82
- power_grid_model_ds-1.4.1.dist-info/RECORD,,
78
+ power_grid_model_ds-1.4.2.dist-info/licenses/LICENSE,sha256=GpbnG1pNl-ORtSP6dmHeiZvwy36UFli6MEZy1XlmBqo,14906
79
+ power_grid_model_ds-1.4.2.dist-info/METADATA,sha256=GkP-FjhBko-W7soqRG_u2V4h3qq-g8difaeQG7qeSXY,8873
80
+ power_grid_model_ds-1.4.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
81
+ power_grid_model_ds-1.4.2.dist-info/top_level.txt,sha256=nJa103Eqvm5TESYEKPFVImfLg_ugGOBznikrM-rZQZg,20
82
+ power_grid_model_ds-1.4.2.dist-info/RECORD,,