nuclear-multimessenger-astronomy / nmma

A pythonic library for probing nuclear physics and cosmology with multimessenger analysis
https://nuclear-multimessenger-astronomy.github.io/nmma/
GNU General Public License v3.0
30 stars 58 forks source link

Add code to downsample/fragment large hdf5 grids #275

Closed bfhealy closed 9 months ago

bfhealy commented 10 months ago

This PR adds code that downsamples light curve grids in hdf5 format (e.g. the large collapsar grid that requires 10x downsampling/fragmentation to train on expanse). The Grid class contains downsample and fragment methods that each allow optional shuffling before saving a resampled version of the grid to user-specified locations.

bfhealy commented 9 months ago

@mcoughlin The astropy 6.0 error I mentioned on the SkyPortal call was connected to the dust-extinction package, whose 1.3 release ~ an hour ago fixes the issue. (https://github.com/karllark/dust_extinction/issues/197)

mcoughlin commented 9 months ago

@bfhealy nice!