-
Notifications
You must be signed in to change notification settings - Fork 277
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
BUG: Update GIZMO frontend to handle newer GIZMO versions #4470
Commits on Jul 25, 2023
-
Two tweaks for updated GIZMO file snapshots
dmetal check - gizmo runs with METALS enabled but all of COOL_METAL_LINES_BY_SPECIES, GALSF_FB_FIRE_RPROCESS, GALSF_FB_FIRE_AGE_TRACERS, and STARFORGE_FEEDBACK_TRACERS disabled will have a metallicity field (aka dmetal) a length 1. This change accounts for this possibility Overriding Gadget _parse_parameter_file - newer versions of GIZMO have changed some of the header fields used by yt for determining the cosmology of the simulation. Moving this function allows for improved cosmology detection. Now check if ComovingIntegrationOn flag exists - if so, use that to determine if cosmological run and pull cosmological parameters using updated names. Otherwise, fall back to checking for OmegaLambda and setting cosmological flag from that.
Configuration menu - View commit details
-
Copy full SHA for 56e748c - Browse repository at this point
Copy the full SHA 56e748cView commit details -
Added diagnostic information and bugfix
I somehow deleted part of a line before the previous commit. This has been fixed.
Configuration menu - View commit details
-
Copy full SHA for 6802369 - Browse repository at this point
Copy the full SHA 6802369View commit details -
Configuration menu - View commit details
-
Copy full SHA for dfafbe6 - Browse repository at this point
Copy the full SHA dfafbe6View commit details -
Updated comments to point out when the switch occurred.
Configuration menu - View commit details
-
Copy full SHA for 08eaa98 - Browse repository at this point
Copy the full SHA 08eaa98View commit details -
Update yt/frontends/gizmo/data_structures.py
Co-authored-by: Clément Robert <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3ff5fbf - Browse repository at this point
Copy the full SHA 3ff5fbfView commit details -
Update yt/frontends/gizmo/data_structures.py
Co-authored-by: Clément Robert <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c1095d5 - Browse repository at this point
Copy the full SHA c1095d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 403ce19 - Browse repository at this point
Copy the full SHA 403ce19View commit details -
Configuration menu - View commit details
-
Copy full SHA for 770da82 - Browse repository at this point
Copy the full SHA 770da82View commit details -
Configuration menu - View commit details
-
Copy full SHA for 044c3d0 - Browse repository at this point
Copy the full SHA 044c3d0View commit details -
It looks like gizmo doesn't export any additional groups besides the Header, unlike Eagle/OWLS. So this should resolve those ambiguities.
Configuration menu - View commit details
-
Copy full SHA for 296cc7b - Browse repository at this point
Copy the full SHA 296cc7bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 21cf09b - Browse repository at this point
Copy the full SHA 21cf09bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 82bd65d - Browse repository at this point
Copy the full SHA 82bd65dView commit details -
Configuration menu - View commit details
-
Copy full SHA for d6bf2c5 - Browse repository at this point
Copy the full SHA d6bf2c5View commit details -
Newer (post Apr 2021) versions of gizmo export GIZMO_version=year_of_last_commit as a header variable. We should use this in preference to checking the gas metallicity, which might not exist. Since the names of the omegas have changed, we don't want to fall back to the gadget loader in the comoving case (in the non-cosmo case it shouldn't matter?)
Configuration menu - View commit details
-
Copy full SHA for 5252fc8 - Browse repository at this point
Copy the full SHA 5252fc8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 883f845 - Browse repository at this point
Copy the full SHA 883f845View commit details -
Added test for new _is_valid and _parse_parameter_file logic
New test requires test files gizmo_zeldovich/snapshot_076_XX_gizver.hdf5 where XX is either wi or no. The files can be generated using the gizmo zeldovich pancake test problem with the additional config flags COOLING and METAL. The _no_gizver then has the GIZMO_version header field manually removed. Snapshot 076 was picked randomly.
Configuration menu - View commit details
-
Copy full SHA for 4e39566 - Browse repository at this point
Copy the full SHA 4e39566View commit details -
Configuration menu - View commit details
-
Copy full SHA for da25c87 - Browse repository at this point
Copy the full SHA da25c87View commit details