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

[bugfix] Allow the magnetic field unit to be set from unit_base in all Gadget-based frontends #3233

Merged
merged 2 commits into from
Apr 29, 2021

Conversation

jzuhone
Copy link
Contributor

@jzuhone jzuhone commented Apr 29, 2021

PR Summary

The GIZMO frontend by default sets the magnetic field code unit to be 1.0 Gauss, but it says here you can set the value of the magnetic unit to something else. This PR allows for that by adding the code to set the magnetic field from unit_base in the Gadget frontend, but the "sane default" is still 1.0 Gauss.

PR Checklist

  • New features are documented, with docstrings and narrative docs
  • Adds a test for any bugs fixed. Adds tests for new features.

@jzuhone jzuhone added bug yt-4.0 feature targeted for the yt-4.0 release labels Apr 29, 2021
@neutrinoceros neutrinoceros added the code frontends Things related to specific frontends label Apr 29, 2021
@munkm
Copy link
Member

munkm commented Apr 29, 2021

@jzuhone do you plan to add tests to this or should we merge it?

@jzuhone
Copy link
Contributor Author

jzuhone commented Apr 29, 2021

@munkm I think this one should just be merged. We need to have a dataset which needs this functionality added to the tests. I have one, but I'll add it later.

@neutrinoceros neutrinoceros merged commit 16cf684 into yt-project:main Apr 29, 2021
@jzuhone jzuhone deleted the flexible_mag_field_units branch April 29, 2021 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug code frontends Things related to specific frontends yt-4.0 feature targeted for the yt-4.0 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants