Skip to content

Commit 88fbb11

Browse files
committed
remove adding transformers separately
1 parent 18a7d86 commit 88fbb11

File tree

7 files changed

+5
-46
lines changed

7 files changed

+5
-46
lines changed

pygridsim/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
__author__ = 'Angela Zhao'
66
__email__ = '[email protected]'
7-
__version__ = '0.1.0.dev0'
7+
__version__ = '0.1.0.0'
88

99
from pygridsim.core import PyGridSim
-3 Bytes
Binary file not shown.
385 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

pygridsim/core.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -104,19 +104,6 @@ def add_lines(self, connections, line_type: LineType = LineType.LV_LINE, params
104104
make_line(src, dst, line_type, self.num_lines, params, transformer)
105105
self.num_lines += 1
106106

107-
def add_transformers(self, connections, params = {}):
108-
"""
109-
Specify all transformers that the user wants to add, same input style as lines.
110-
111-
Args:
112-
connections: a list of new transformers to add (where to add them), with these params
113-
TODO: remove
114-
"""
115-
for src, dst in connections:
116-
make_transformer(src, dst, self.num_transformers, params)
117-
self.num_transformers += 1
118-
119-
120107
def view_load_nodes(self, indices = []):
121108
"""
122109
View load nodes (what their parameters are) at the given indices.

pygridsim/transformers.py

Lines changed: 0 additions & 28 deletions
This file was deleted.

sim.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"Voltages": {
3-
"source": 3623991.955061431,
4-
"load0": 783.9555181687916
3+
"source": 3879100.6152280653,
4+
"load0": 866.8975433444583
55
},
66
"Losses": {
7-
"Active Power Loss": 1164785189852.638,
8-
"Reactive Power Loss": 2421893689046.014
7+
"Active Power Loss": 1210574022465.718,
8+
"Reactive Power Loss": 2517043226922.8716
99
}
1010
}

0 commit comments

Comments
 (0)