Skip to content

Commit 057a3d4

Browse files
authored
Updates to handle large Monte Carlo runs (#18)
* handle different base years of K and pop in sliiders * allow for restarting of surge lookup creation * fix issues when seg_var != "seg_adm" * fix io funcs for on-the-fly quantiles, fix storage_options default, add other selectors to prep_sliiders, allow other name options for dims of input stores, improve performance of create_template_dataarray, drop now unnecessary save_to_zarr_region wrapper * handle upcoming xarray default merge changes, allow for skipping check for surge lookup completeness to save time, allow chunking along other dims than seg, use as_completed instead of client.gather, add some print stmts for model status, fix use of scen_mc_filter in execute_pyciam, remove erroneously left testing return in execute_pyciam, allow for unique spec of quantile to use for refA, drop custom save_to_zarr_region func * optimize slr loading by using pint later in the process * add vsl to the variables that are condensed to segment in collapse_econ_inputs_to_seg * improve performance of surge lookup creation by loading only min and max of slr data; improve dtypes of template zarrs; * remove all pins in environment.yml except python=3.14 * add numpy >= 2 dependency to pyproject.toml * explicitly specify "quantile" * add comment for when _load_scenario_mc only returns scenario filter, not MC * fix i/o for when passing scen_mc_filter * fix bug in using pandas index for xr.concat with pandas string dtype in pandas 3 * update execute_pyciam to work with large ensemble runs * extract some functionality into private funcs and confirm it works for end-to-end large ensemble run * remove unnecessary block
1 parent f32f762 commit 057a3d4

6 files changed

Lines changed: 1022 additions & 484 deletions

File tree

environment/environment.yml

Lines changed: 27 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,31 @@ name: pyciam
22
channels:
33
- conda-forge
44
dependencies:
5-
- bottleneck=1.3
6-
- bokeh=2.4.3 # for use of dask dashboard
7-
- cartopy=0.21.1
8-
- cloudpathlib=0.13
9-
- distributed=2023.3.1
10-
- flox=0.6.8
11-
- fsspec=2023.3.0
12-
- geopandas=0.12.2
13-
- gitpython=3.1.31 # unmarked dependency of rhg_compute_tools
14-
- jupyterlab=3.6.1
15-
- matplotlib=3.7.1
16-
- numpy=1.24.2
17-
- numpy_groupies=0.9.20
18-
- oct2py=5.6.0
19-
- octave=7.3.0
20-
- openpyxl=3.1.1
21-
- pandas=1.5.3
22-
- papermill=2.3.4
23-
- pint-xarray=0.3
24-
- pip=23.0.1
25-
- python=3.11.0
26-
- requests=2.28.2
27-
- scikit-learn=1.2.2
28-
- scipy=1.10.1
29-
- tqdm=4.65.0
30-
- xarray=2023.2.0
31-
- zarr=2.14.2
5+
- bottleneck
6+
- bokeh # for use of dask dashboard
7+
- cartopy
8+
- cloudpathlib
9+
- distributed
10+
- flox
11+
- fsspec
12+
- geopandas
13+
- gitpython # unmarked dependency of rhg_compute_tools
14+
- jupyterlab
15+
- matplotlib
16+
- numpy
17+
- openpyxl
18+
- pandas
19+
- papermill
20+
- pint-xarray
21+
- pip
22+
- python=3.14
23+
- requests
24+
- scikit-learn
25+
- scipy
26+
- tqdm
27+
- xarray
28+
- zarr
3229
- pip:
33-
- python-ciam==1.1
34-
- rhg_compute_tools==1.3
35-
- parameterize_jobs==0.1
30+
- python-ciam
31+
- rhg_compute_tools
32+
- parameterize_jobs

0 commit comments

Comments
 (0)