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

Update OpenPMD test to include 'nbody' ptype #2686

Merged
merged 2 commits into from Jun 25, 2020

Conversation

Xarthisius
Copy link
Member

@Xarthisius Xarthisius commented Jun 25, 2020

PR Summary

This should fix the OpenPMD errors appearing in #2677.

Update: I sneaked in a minor cosmetic fix for Arepo, that I botched in #2677. It's only avoiding doing the same thing twice.

@Xarthisius Xarthisius added bug yt-4.0 feature targeted for the yt-4.0 release labels Jun 25, 2020
Copy link
Member

@cphyc cphyc left a comment

Choose a reason for hiding this comment

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

LGTM.

domain_dimensions = [32, 64, 64] * np.ones_like(dss[0].domain_dimensions)
domain_width = [0.0002752, 0.0005504, 0.0005504] * np.ones_like(dss[0].domain_left_edge)

assert_equal(len(dss), 101)
for ds in dss:
for i in range(0, len(dss), 20): # Test only every 20th ds out of the series
Copy link
Member

Choose a reason for hiding this comment

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

Is the reason for one out of every 20th to speed up testing? or something else?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, speed. Since that test doesn't do anything different for an individual ds right now, there's really no point in doing it for each and everyone.

Copy link
Member

Choose a reason for hiding this comment

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

Makes sense!

@munkm munkm merged commit 09c8f71 into yt-project:master Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug yt-4.0 feature targeted for the yt-4.0 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants