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

Unpack the boxsize as a cosmo_array. #214

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

kyleaoman
Copy link
Member

Closes #128

Finally got around to implementing this. It's set up to mimic the way units are applied to header fields.

One thing to consider is whether we're happy with how the non-cosmological case is handled. If the simulation is non-cosmological, then the scale_factor will default to 1.0 (because swiftsimio enforces that it exists). The box_size is then created as a cosmo_array with comoving=True, but that's acceptable because scale_factor=1 so it will just silently convert to physical if it ever needs to.

If we're not happy with that, then some further introspection will be needed to figure out if the snapshot is non-cosmological.

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.

boxsize in metadata should be cosmo_array, not unyt_array?
1 participant