isochrones icon indicating copy to clipboard operation
isochrones copied to clipboard

Issue when reading in isochrones hdf5 file

Open cpiaulet opened this issue 5 years ago • 4 comments

Hi, I just downloaded isochrones (I have anaconda3 and installed all the required dependencies). However, when running the code I am getting the following issue: AttributeError: Attribute 'block0_items_variety' does not exist in node: '/df' raised l.107 in grid.py when the code is trying to read in the hdf file. df = pd.read_hdf(h5file, path) I get the same error if I simply do: import pandas as pd df = pd.read_hdf('/Users/caroline/.isochrones/mist/mist_v1.2_vvcrit0.4_full_isos.h5').

Did anyone else encounter this problem and find a way around it?

Thanks!

cpiaulet avatar Sep 10 '20 14:09 cpiaulet

I haven't seen this, but have you tried browsing this issue https://github.com/pandas-dev/pandas/issues/18972 and see if anything there helps? Do you have a recent version of pandas?

timothydmorton avatar Sep 10 '20 17:09 timothydmorton

I have seen this thread but the latest messages show that the issue still persists with the latest pandas version for certain files. I have installed the latest pandas too and was wondering if that could be because the file was generated by an older version which is no longer supported by pandas?

cpiaulet avatar Sep 10 '20 19:09 cpiaulet

All these files should be generated locally by isochrones at the time of running the first tests; did you by some chance have a previously existing ~/.isochrones directory? If so, delete or remove it and try again?

timothydmorton avatar Sep 10 '20 21:09 timothydmorton

We have identified some other pandas issues in #138 and #139. You may want to try downgrading pandas to <1.1, and see if that works for now.

timothydmorton avatar Sep 16 '20 18:09 timothydmorton