tobac icon indicating copy to clipboard operation
tobac copied to clipboard

Pytables dependency removal

Open w-k-jones opened this issue 2 years ago • 2 comments

Source code inspection for the conda-forge feedstock found that pytables is not referenced anywhere and could be removed as a dependency. Is this true, and if so should it be removed from both the conda-forge and local requirements?

w-k-jones avatar Apr 12 '22 21:04 w-k-jones

I believe that pytables is (used to be?) required downstream by one of our dependencies (maybe HDF5 saving of pandas files?), but that's not a good reason for us to require it. By the same token, I don't think we actually use cf_units ourselves either (iris does require it). I'm in favor of removing both of these requirements.

freemansw1 avatar Apr 13 '22 15:04 freemansw1

I figured out why pytables is currently required. Reading and writing hdf5 from pandas requires pytables as an optional dependency.

That said, I'm not opposed to removing pytables as a dependency, but we would probably want to move the tutorial notebooks to saving the pandas output as pickle or something. The pandas-generated HDF5 files are pretty much only readable by pandas anyway.

freemansw1 avatar Apr 24 '22 17:04 freemansw1

I'm going to tag this as v1.5 and will do this along with #196. We should probably also remove cf-units as a dependency given that we don't use it directly.

freemansw1 avatar Nov 14 '22 23:11 freemansw1

Resolved with #204

freemansw1 avatar Nov 30 '22 16:11 freemansw1