Skip to content

Commit

Permalink
improve python3.11 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
joda9 committed Jul 16, 2024
1 parent 583c4f6 commit eb51022
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/tests-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ jobs:
python-version: 3.9
- name-suffix: "basic"
os: ubuntu-latest
python-version: "3.10"
python-version: 3.10
- name-suffix: "basic"
os: ubuntu-latest
python-version: 3.11
- name-suffix: "basic"
os: windows-latest
python-version: 3.9
Expand Down
2 changes: 1 addition & 1 deletion edisgo/network/topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -2123,7 +2123,7 @@ def _choose_random_substation_id():
"""
if comp_type == "generator":
random.seed(a=comp_data["generator_id"])
random.seed(a=int(comp_data["generator_id"]))
elif comp_type == "storage_unit":
random.seed(a=len(self.storage_units_df))
else:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def read(fname):
"pypsa >= 0.17.0, <= 0.20.1",
"pyyaml",
"saio",
"scikit-learn <= 1.1.1",
"scikit-learn < 1.3.0",
"shapely >= 1.7.0",
"sqlalchemy < 1.4.0",
"sshtunnel",
Expand Down

0 comments on commit eb51022

Please sign in to comment.