You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to generate plots for GCClassic vs GCHP 1-year benchmarks (both fullchem and transport tracers), GCPy crashes with the following error:
%%% Creating GCHP vs. GCC emissions plots %%%
Creating plots for annual mean
joblib.externals.loky.process_executor._RemoteTraceback:
"""
Traceback (most recent call last):
File "/n/home05/msulprizio/python/mamba/envs/gcpy_env/lib/python3.9/site-packages/joblib/externals/loky/process_executor.py", line 463, in _process_worker
r = call_item()
File "/n/home05/msulprizio/python/mamba/envs/gcpy_env/lib/python3.9/site-packages/joblib/externals/loky/process_executor.py", line 291, in __call__
return self.fn(*self.args, **self.kwargs)
File "/n/home05/msulprizio/python/mamba/envs/gcpy_env/lib/python3.9/site-packages/joblib/parallel.py", line 589, in __call__
return [func(*args, **kwargs)
File "/n/home05/msulprizio/python/mamba/envs/gcpy_env/lib/python3.9/site-packages/joblib/parallel.py", line 589, in <listcomp>
return [func(*args, **kwargs)
File "/n/home05/msulprizio/python/gcpy/gcpy/benchmark.py", line 1834, in createfile_hco_cat
compare_single_level(
File "/n/home05/msulprizio/python/gcpy/gcpy/plot.py", line 1710, in compare_single_level
results = createfig(i, temp_dir)
File "/n/home05/msulprizio/python/gcpy/gcpy/plot.py", line 1303, in createfig
ds_dev_reg = get_extent_for_colors(
File "/n/home05/msulprizio/python/gcpy/gcpy/plot.py", line 1291, in get_extent_for_colors
return ds_new.where(ds_new[lon_var] >= minlon, drop=True).\
File "/n/home05/msulprizio/python/mamba/envs/gcpy_env/lib/python3.9/site-packages/xarray/core/common.py", line 1181, in where
self = self.isel(**indexers)
File "/n/home05/msulprizio/python/mamba/envs/gcpy_env/lib/python3.9/site-packages/xarray/core/dataarray.py", line 1445, in isel
ds = self._to_temp_dataset()._isel_fancy(
File "/n/home05/msulprizio/python/mamba/envs/gcpy_env/lib/python3.9/site-packages/xarray/core/dataset.py", line 2930, in _isel_fancy
new_var = var.isel(indexers=var_indexers)
File "/n/home05/msulprizio/python/mamba/envs/gcpy_env/lib/python3.9/site-packages/xarray/core/variable.py", line 1368, in isel
return self[key]
File "/n/home05/msulprizio/python/mamba/envs/gcpy_env/lib/python3.9/site-packages/xarray/core/variable.py", line 891, in __getitem__
dims, indexer, new_order = self._broadcast_indexes(key)
File "/n/home05/msulprizio/python/mamba/envs/gcpy_env/lib/python3.9/site-packages/xarray/core/variable.py", line 724, in _broadcast_indexes
self._validate_indexers(key)
File "/n/home05/msulprizio/python/mamba/envs/gcpy_env/lib/python3.9/site-packages/xarray/core/variable.py", line 776, in _validate_indexers
raise KeyError(
KeyError: 'Indexing with a boolean dask array is not allowed. This will result in a dask array of unknown shape. Such arrays are unsupported by Xarray.Please compute the indexer first using .compute()'
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/n/home05/msulprizio/gcpy/benchmark/run_benchmark.py", line 1591, in <module>
main()
File "/n/home05/msulprizio/gcpy/benchmark/run_benchmark.py", line 1587, in main
choose_benchmark_type(config)
File "/n/home05/msulprizio/gcpy/benchmark/run_benchmark.py", line 92, in choose_benchmark_type
run_1yr_benchmark(
File "/n/home05/msulprizio/python/gcpy/benchmark/modules/run_1yr_fullchem_benchmark.py", line 978, in run_benchmark
bmk.make_benchmark_emis_plots(
File "/n/home05/msulprizio/python/gcpy/gcpy/benchmark.py", line 1861, in make_benchmark_emis_plots
results = Parallel(n_jobs=n_job)(delayed(createfile_hco_cat)(c)
File "/n/home05/msulprizio/python/mamba/envs/gcpy_env/lib/python3.9/site-packages/joblib/parallel.py", line 1952, in __call__
return output if self.return_generator else list(output)
File "/n/home05/msulprizio/python/mamba/envs/gcpy_env/lib/python3.9/site-packages/joblib/parallel.py", line 1595, in _get_outputs
yield from self._retrieve()
File "/n/home05/msulprizio/python/mamba/envs/gcpy_env/lib/python3.9/site-packages/joblib/parallel.py", line 1699, in _retrieve
self._raise_error_fast()
File "/n/home05/msulprizio/python/mamba/envs/gcpy_env/lib/python3.9/site-packages/joblib/parallel.py", line 1734, in _raise_error_fast
error_job.get_result(self.timeout)
File "/n/home05/msulprizio/python/mamba/envs/gcpy_env/lib/python3.9/site-packages/joblib/parallel.py", line 736, in get_result
return self._return_or_raise()
File "/n/home05/msulprizio/python/mamba/envs/gcpy_env/lib/python3.9/site-packages/joblib/parallel.py", line 754, in _return_or_raise
raise self._result
KeyError: 'Indexing with a boolean dask array is not allowed. This will result in a dask array of unknown shape. Such arrays are unsupported by Xarray.Please compute the indexer first using .compute()'
real 38.78
user 57.60
sys 5.95
srun: error: holy7c24212: task 0: Exited with exit code 1
@msulprizio, @lizziel: I am building a new (temporary) python environment using xarray==2023.02.0, which should not have this issue. Will keep you posted.
Describe the bug
When trying to generate plots for GCClassic vs GCHP 1-year benchmarks (both fullchem and transport tracers), GCPy crashes with the following error:
To Reproduce
I am using the latest version of the
dev
branch the this configuration file:1yr_fullchem_benchmark.yml.txt
The text was updated successfully, but these errors were encountered: