timothydmorton / isochrones

Pythonic stellar model grid access; easy MCMC fitting of stellar properties
http://isochrones.readthedocs.org
MIT License
117 stars 63 forks source link

Issue when reading in isochrones hdf5 file #137

Open cpiaulet opened 3 years ago

cpiaulet commented 3 years ago

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!

timothydmorton commented 3 years ago

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?

cpiaulet commented 3 years ago

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?

timothydmorton commented 3 years ago

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 commented 3 years ago

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.