Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
e1e58aa
update geospatial packages
patrickbrown4 May 8, 2026
2ff493b
update all python packages and use conda-forge for everything
patrickbrown4 May 8, 2026
eac400e
Merge branch 'main' into pb/environment_all
patrickbrown4 May 20, 2026
bf4fd04
update gdxpds, add gams.transfer, add highspy
patrickbrown4 May 20, 2026
9c7dcbc
fix reeds.io.get_switches()
patrickbrown4 May 20, 2026
508e87b
use raw strings for regex
patrickbrown4 May 20, 2026
4b7d8c7
fix copy_files.py
patrickbrown4 May 20, 2026
fa193fc
bump gdxpds to 2.0.0
patrickbrown4 May 20, 2026
899c780
Merge branch 'main' into pb/environment_all
patrickbrown4 Jun 5, 2026
c125f56
update gdxpds
patrickbrown4 Jun 5, 2026
1e3c3ea
use new pandas string data type when parsing for h5py
patrickbrown4 Jun 5, 2026
8270ec7
add tolerance to get_zones() and apply to maps via simplify_coverage()
patrickbrown4 Jun 5, 2026
4c22243
write_to_h5(): change overwrite default to True
patrickbrown4 Jun 5, 2026
ba2f8a6
use pd.api.types.is_string_dtype()
patrickbrown4 Jun 6, 2026
335ff21
fix financials.py
patrickbrown4 Jun 6, 2026
f0c5318
financials_tech_{}.csv: remove country column
patrickbrown4 Jun 10, 2026
e211c5b
groupby(axis=1) -> .T.groupby().T
patrickbrown4 Jun 10, 2026
1429545
fillna(method='bfill') -> bfill()
patrickbrown4 Jun 10, 2026
03da33b
calc_financial_inputs.py: don't overwrite files with same name; fix f…
patrickbrown4 Jun 10, 2026
0a7c93e
freq='H' -> freq='h'
patrickbrown4 Jun 10, 2026
2666ec4
more groupby(axis)
patrickbrown4 Jun 10, 2026
aad0120
writesupplycurves.py: fix agg_supplycurve(); make sure all cost outpu…
patrickbrown4 Jun 10, 2026
a6aef86
reeds.io.read_file(): set parse_timestamps=True; rename decode_h5_tim…
patrickbrown4 Jun 11, 2026
98c7139
hourly_load.py: fix series/dataframe division & subtraction
patrickbrown4 Jun 11, 2026
12b1661
outage_rates.py: fix dataframe.replace()
patrickbrown4 Jun 11, 2026
9311ba5
fix parse_h5_timestamps()
patrickbrown4 Jun 12, 2026
e89300e
hourly_repperiods.py: another groupby(axis)
patrickbrown4 Jun 12, 2026
bb7f4f8
environment: move pulp to pip (can't find cbc otherwise)
patrickbrown4 Jun 12, 2026
1e29286
aggregate reg_cap_cost_diff in calc_financial_inputs.py
patrickbrown4 Jun 12, 2026
34e559c
more groupby(axis)
patrickbrown4 Jun 12, 2026
7f364d2
tc_phaseout.py: drop duplicate i values
patrickbrown4 Jun 12, 2026
43bac52
reeds_data_parsing.jl: more informative error
patrickbrown4 Jun 12, 2026
9d27e25
Merge branch 'main' into pb/environment_all
patrickbrown4 Jun 12, 2026
dbe3c86
Merge branch 'main' into pb/environment_all
patrickbrown4 Jun 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 36 additions & 39 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,47 @@
name: reeds2
name: reeds
channels:
- defaults
- conda-forge
dependencies:
- python=3.11
- bokeh=3.2
- click=8.0
- git-lfs=2.13
- python=3.14
- bokeh=3.9
- click=8.3
- cmocean=4.0
- geopandas=1.1
- git-lfs=3.7
- gitpython=3.1
- h5py=3.9
- matplotlib=3.7
- numpy=1.26
- openpyxl=3.0
- pandas=2.0
- pip=23.2
- pytables=3.8
- pytest=7.4
- requests=2.31
- scikit-learn=1.2
- scipy=1.11
- tqdm=4.65
- h5py=3.16
- matplotlib=3.10
- numpy=2.4
- openpyxl=3.1
- pandas=3.0
- pip=26.1
- pytables=3.11
- pytest=9.0
- requests=2.33
- scikit-learn=1.8
- scipy=1.17
- shapely=2.1
- tqdm=4.67
## vvv The next packages are optional for default settings and may
## vvv be excluded if you're having trouble building the environment.
- ipykernel=6.25 # for interactive python in VS Code
- ipywidgets=8.0 # for jupyter notebooks
- mapclassify=2.5 # more mapping tools
- fiona=1.10 # for interactive maps
- folium=0.20 # for interactive maps
- ipykernel=7.2 # for interactive python in VS Code
- ipywidgets=8.1 # for jupyter notebooks
- mapclassify=2.10 # more mapping tools
- mscorefonts=0.0 # extra fonts for plotting (only relevant on linux/HPC)
- networkx=3.1 # for uncommonly-used network analysis postprocessing
- notebook=6.5 # for jupyter notebooks
- myst-parser=5.0 # for building documentation
- networkx=3.6 # for uncommonly-used network analysis postprocessing
- notebook=7.5 # for jupyter notebooks
- python-pptx=1.0 # for postprocessing/compare_cases.py
- sphinx=9.1 # for building documentation
- sphinx_rtd_theme=3.1 # for documentation
- sphinxcontrib-bibtex=2.6 # for documentation
## ^^^
- pip:
- cmocean==3.0.3
- gdxpds==1.4.0
- geopandas==0.14.0
- pulp==2.7.0
- shapely==2.0.1
- gamsapi[transfer]==53.5.0
- gdxpds==4.0.0
- pulp==3.3.2
## vvv The next packages are optional for default settings and may
## vvv be excluded if they cause trouble building the environment.
- fiona==1.9.5 # for interactive maps
- folium==0.14.0 # for interactive maps
- gamspy_base==50.5.0 # for tests on the github runner
- myst-parser==2.0.0 # for building documentation
- proj==0.2.0 # for plotting maps
- pyproj==3.6.1 # for plotting maps
- python-pptx==0.6.22 # for postprocessing/compare_cases.py
- sphinx_rtd_theme==2.0.0 # for documentation
- sphinx==7.2.6 # for building documentation
- sphinxcontrib-bibtex==2.6.2 # for documentation
## ^^^
- gamspy_base==53.5.0 # for tests on the github runner
4 changes: 2 additions & 2 deletions hourlize/agg_buildings/agg_buildings.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
cnty_fips = [int(c[1:3] + c[4:7]) for c in counties]
bas = [county_map[c] if c in county_map else 'undefined' for c in cnty_fips]
df.columns = bas
df_sum = df.groupby(df.columns, axis=1).sum()
df_sum = df.T.groupby(df.columns).sum().T
ls_df.append(df_sum)

df_sum = pd.concat(ls_df, axis=1)
df_sum = df_sum.groupby(df_sum.columns, axis=1).sum()
df_sum = df_sum.T.groupby(df_sum.columns).sum().T
df_sum = df_sum/1000 #Convert to GWh
df_sum.to_csv(f'{bldg_path}/agg_{bldg_type}_eulp_hvac_elec_GWh_{bldg_tech}.csv')
2 changes: 1 addition & 1 deletion hourlize/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ def save_sc_outputs(
ret_year_ls = list(range(start_year,max_exog_ret_year + 1))
df_exog = df_exog.pivot_table(index=[profile_id_col,'class'], columns='retire_year', values='existing_capacity')
# Make a column for every year until the largest retirement year
df_exog = df_exog.reindex(columns=ret_year_ls).fillna(method='bfill', axis='columns')
df_exog = df_exog.reindex(columns=ret_year_ls).bfill(axis='columns')
df_exog = pd.melt(
df_exog.reset_index(), id_vars= [profile_id_col,'class'],
value_vars=ret_year_ls, var_name='year', value_name='capacity')
Expand Down
Loading
Loading