Commit 057a3d4
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 block1 parent f32f762 commit 057a3d4
6 files changed
Lines changed: 1022 additions & 484 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
32 | 29 | | |
33 | | - | |
34 | | - | |
35 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
0 commit comments