Skip to content

Commit 50907db

Browse files
committed
Fix git workflow
1 parent d9cf54c commit 50907db

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

.github/workflows/python-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
# stop the build if there are Python syntax errors or undefined names
3737
flake8 . --ignore=E501,F401,W503,E266 --count --select=E9,F63,F7,F82 --show-source --statistics
3838
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
39-
flake8 . --ignore=E501,F401,W503,E266 --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
39+
flake8 . --ignore=E501,F401,W503,E266,C901 --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
4040
4141
- name: Unit testing
4242
run: |

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ dependencies = [
3131
"statsmodels >= 0.14.4",
3232
"geopandas >= 1.0.1",
3333
"contextily >= 1.6.2",
34-
"coverage >= 7.8.0",
34+
"coverage[toml] >= 7.8.0",
3535
]
3636
requires-python = ">=3.10"
3737

src/pownet/core/output.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -135,16 +135,6 @@ def get_monthly_demand(self, input_demand: pd.DataFrame) -> pd.Series:
135135
monthly_demand.index.name = "Month"
136136
return monthly_demand
137137

138-
def get_thermal_unit_hourly_status(
139-
self, node_variables: pd.DataFrame
140-
) -> pd.DataFrame:
141-
"""The hourly status of thermal units for each hour over the simulation period."""
142-
thermal_unit_hourly_status = node_variables[
143-
node_variables["vartype"] == "status"
144-
].reset_index(drop=True)
145-
thermal_unit_hourly_status["timestep"] = thermal_unit_hourly_status["hour"] % 24
146-
return thermal_unit_hourly_status
147-
148138
def get_thermal_unit_mean_hourly_status(
149139
self, node_variables: pd.DataFrame
150140
) -> pd.DataFrame:

0 commit comments

Comments
 (0)