Skip to content

Commit

Permalink
Feature/compatibility python 3.11 (#408)
Browse files Browse the repository at this point in the history
* improve python3.11 compatibility
  • Loading branch information
joda9 authored Jul 17, 2024
1 parent 9253c33 commit d0bb7f6
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/tests-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
- name-suffix: "basic"
os: ubuntu-latest
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_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- conda-forge
- defaults
dependencies:
- python >= 3.9, < 3.11
- python >= 3.9, <= 3.11
- pip
- pandas >= 1.4, < 2.2.0
- conda-forge::fiona
Expand Down
2 changes: 1 addition & 1 deletion eDisGo_env_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- conda-forge
- defaults
dependencies:
- python >= 3.9, < 3.11
- python >= 3.9, <= 3.11
- pip
- pandas >= 1.4, < 2.2.0
- conda-forge::fiona
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 rtd_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pyproj >= 3.0.0
pypsa == 0.26.2
pyyaml
saio
scikit-learn
scikit-learn < 1.3.0
sphinx
sphinx_rtd_theme >=0.5.2
sphinx-autodoc-typehints
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def read(fname):
"pypsa == 0.26.2",
"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 d0bb7f6

Please sign in to comment.