Skip to content

Update metadata module with power spectrum#69

Merged
lgarrison merged 4 commits intomasterfrom
metadata-pk
Jan 11, 2023
Merged

Update metadata module with power spectrum#69
lgarrison merged 4 commits intomasterfrom
metadata-pk

Conversation

@lgarrison
Copy link
Member

Adds the power spectrum, A_s, and alpha_s to the metadata module. Also adds a single small sim.

Most of the power spectra are actually the same (c000_ph000), so we can de-dup the data on disk by having all the astropy tables use the same underlying columns (this is done in compress.py). The resulting ASDF files have separate entries for each astropy table in the tree, but the source tag for the columns (i.e. the corresponding binary block) is the same.

The metadata file is 9 MB, which is probably okay. We could tune this a bit more if astropy/asdf-astropy#156 gets implemented.

We now use msgpack on the params instead of pickle. The compression of json, pickle, and msgpack is the same, but msgpack is portable and supports non-string dict keys.

Closes #61.

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.

missing info in metadata module

1 participant