Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code to downsample/fragment large hdf5 grids #275

Merged

Conversation

bfhealy
Copy link
Collaborator

@bfhealy bfhealy commented Nov 17, 2023

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 bfhealy changed the title WIP: Add code to downsample/fragment large hdf5 grids Add code to downsample/fragment large hdf5 grids Nov 28, 2023
@bfhealy bfhealy marked this pull request as ready for review November 28, 2023 19:43
@bfhealy
Copy link
Collaborator Author

bfhealy commented Nov 28, 2023

@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. (karllark/dust_extinction#197)

@mcoughlin
Copy link
Member

@bfhealy nice!

Copy link
Member

@mcoughlin mcoughlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mcoughlin mcoughlin merged commit 22451b4 into nuclear-multimessenger-astronomy:main Nov 28, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants