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

ENH: Update to fields used in Enzo answer testing #3998

Merged
merged 3 commits into from
Jul 6, 2022

Conversation

jwise77
Copy link
Contributor

@jwise77 jwise77 commented Jul 5, 2022

PR Summary

This PR updates the field names to be tuples in the answer testing of the Enzo frontend. The hubble_constant parameter is also not necessarily always written as a float (i.e. 1), so it is read as an int, which causes problems in unyt downstream. Forcing it to be float at initialization.

@jwise77 jwise77 requested a review from brittonsmith July 5, 2022 17:25
@jwise77 jwise77 added infrastructure Related to CI, versioning, websites, organizational issues, etc enhancement Making something better code frontends Things related to specific frontends and removed infrastructure Related to CI, versioning, websites, organizational issues, etc labels Jul 5, 2022
@jwise77 jwise77 changed the title Update to fields used in Enzo answer testing ENH: Update to fields used in Enzo answer testing Jul 5, 2022
@jwise77 jwise77 removed the request for review from brittonsmith July 5, 2022 20:25
@@ -122,8 +121,8 @@ def get_analytical_solution(self):
pos, dens, vel, pres, inte = np.loadtxt(self.solution_file, unpack=True)
exact = {}
exact["pos"] = pos
Copy link
Member

Choose a reason for hiding this comment

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

@jwise77 should this key be updated too or is there a reason not to ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It shouldn't be updated. This key is only used for interpolation purposes in the answer testing and not directly compared to the field data.

Copy link
Member

Choose a reason for hiding this comment

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

fair enough !

@neutrinoceros neutrinoceros merged commit e163310 into yt-project:main Jul 6, 2022
@jwise77 jwise77 deleted the enzo-answer-testing-update branch March 9, 2024 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code frontends Things related to specific frontends enhancement Making something better
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants