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
...PI computation complete and saved
Performing PI analyses...
Traceback (most recent call last):
File "run_sample.py", line 148, in <module>
ds2 = run_sample_analyses(ds,_mdrF,CKCD=0.9)
File "run_sample.py", line 73, in run_sample_analyses
basins = pickle.load( open( _mdrF, "rb" ) )
AttributeError: Can't get attribute 'PandasIndexAdapter' on <module 'xarray.core.indexing' from '/Users/arreyes/miniconda3/envs/mytcpypi/lib/python3.7/site-packages/xarray/core/indexing.py'>
The error occurs because the pickled file was saved with an unknown version of pickle and they are not supposed to be compatible (see e.g. pydata/xarray#5642) a better Idea could be to redistribute the file as netcdf or hdf5.
The text was updated successfully, but these errors were encountered:
aramirezreyes
changed the title
A pickled file for "run_sample.py" is not a good idea.
Can we change file for "run_sample.py" from a pickle file to a more portable format?
May 24, 2022
Actually now that I notice, mdr.pk1 is not used anywhere as far as I can see. It is loaded in run_sample.py but its contents are never used. That line could be removed. If there is some functionality for the basins dataset we can use netCDF (I could contribute a PR if you think this is a good idea.).
When running run_sample.py on python 3.7 with:
The error occurs because the pickled file was saved with an unknown version of pickle and they are not supposed to be compatible (see e.g. pydata/xarray#5642) a better Idea could be to redistribute the file as netcdf or hdf5.
The text was updated successfully, but these errors were encountered: