-
Notifications
You must be signed in to change notification settings - Fork 280
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
Fix print_stats
function for RAMSES datasets.
#3196
Conversation
I'm not sure the new test is actually preventing this kind of bug to reappear. Can you add a note we should use capsys to actually test the output (when pytest is our only test runner) ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good!
@@ -638,7 +638,7 @@ def test_max_level(): | |||
assert any(ds.r["index", "grid_level"] == 2) | |||
|
|||
|
|||
@requires_file(ramses_new_format) | |||
@requires_file(output_00080) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good correction here!!!
def test_print_stats(): | ||
ds = yt.load(ramses_new_format) | ||
|
||
# Should work |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤞
I should have written it more clearly, but when I say broken I mean it raises an exception. |
PR Summary
The
print_stats
function is broken for RAMSES datasets.PR Checklist