Skip to content

Commit

Permalink
Fix readthedocs API doc (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
birgits committed Sep 22, 2021
1 parent 1e059af commit bc826b4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ formats: all

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.6
version: "3.7"
install:
- requirements: rtd_requirements.txt
12 changes: 8 additions & 4 deletions edisgo/io/pypsa_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -1010,12 +1010,16 @@ def process_pfa_results(edisgo, pypsa, timesteps):
[edisgo.results.pfa_v_mag_pu_seed,
pypsa.buses_t["v_mag_pu"].reindex(index=timesteps)
]
).reset_index().drop_duplicates(
subset='index', keep='last').set_index('index').fillna(1)
)
edisgo.results.pfa_v_mag_pu_seed = edisgo.results.pfa_v_mag_pu_seed[
~edisgo.results.pfa_v_mag_pu_seed.index.duplicated(
keep='last')].fillna(1)

edisgo.results.pfa_v_ang_seed = pd.concat(
[edisgo.results.pfa_v_ang_seed,
pypsa.buses_t["v_ang"].reindex(index=timesteps)
]
).reset_index().drop_duplicates(
subset='index', keep='last').set_index('index').fillna(0)
)
edisgo.results.pfa_v_ang_seed = edisgo.results.pfa_v_ang_seed[
~edisgo.results.pfa_v_ang_seed.index.duplicated(
keep='last')].fillna(0)
14 changes: 7 additions & 7 deletions rtd_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
sphinx_rtd_theme
demandlib
networkx >= 2.0
pandas >=0.24.0, <=0.24.0
pypsa >=0.15.0
pyproj >=1.9.5.1, <=1.9.5.1
geopy >=1.11.0, <=1.11.0
pyomo >= 5.5.0
networkx >= 2.5.0
geopy >= 2.0.0
pandas >= 1.2.0, < 1.3.0
pyproj >= 3.0.0
pypsa >=0.17.0
pyomo >= 6.0
multiprocess
workalendar
egoio >= 0.4.7
matplotlib
matplotlib >= 3.3.0
pypower
sklearn

0 comments on commit bc826b4

Please sign in to comment.