Skip to content

Commit 140e84a

Browse files
authored
Merge pull request #4 from EES-TUe/remove-irrelevant-groupings
remove irrelevant cable type grouping columns
2 parents b31a140 + dfb2525 commit 140e84a

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "electricity_network_file_parser"
7-
version = "0.0.2"
7+
version = "0.0.3"
88
authors = [
99
{ name="Leo van Schooten", email="l.g.t.v.schooten@tue.nl" },
1010
]

src/electricity_network_file_parser/FileParser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ def parse_cable_types(self, cables_df : pd.DataFrame) -> pd.DataFrame:
121121
pass
122122

123123
def write_all_data_frames(self, file_name : str = "data.xlsx"):
124-
self.data_frames["CABLETYPE"] = self.get_cable_type_data_as_dataframe()
125124
with pd.ExcelWriter(file_name) as writer:
126125
for name, dataframe in self.data_frames.items():
127126
dataframe.to_excel(writer, sheet_name=name, index=False)

src/electricity_network_file_parser/GnfParser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(self, file_path):
2020
}
2121

2222
def parse_cable_types(self, cables_df : pd.DataFrame) -> pd.DataFrame:
23-
columns_to_group_by = ["Unom", "Price", "C", "C0",
23+
columns_to_group_by = ["C", "C0",
2424
"Inom0", "G1", "Inom1", "G2",
2525
"Inom2", "G3", "Inom3", "Ik1s",
2626
"Tr", "TInom", "TIk1s", "Frequency",

0 commit comments

Comments
 (0)