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] Generate smoothing length if it's needed for frontends which don't have it #2252

Merged
merged 2 commits into from
Apr 25, 2019

Conversation

jzuhone
Copy link
Contributor

@jzuhone jzuhone commented Apr 24, 2019

Another nit I discovered by poking around. Some Gadget-based frontends (e.g. Arepo) have to generate their own smoothing lengths. Normally when this field is asked for it's already been generated for data selection purposes, but there is the case of selecting all data where it hasn't. This PR ensures that the smoothing lengths are always generated if they are needed.

Copy link
Member

@ngoldbaum ngoldbaum left a comment

Choose a reason for hiding this comment

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

Good catch! Left a minor comment below, feel free to ignore if you disagree.

yt/frontends/gadget/io.py Show resolved Hide resolved
@Xarthisius Xarthisius merged commit c24cec7 into yt-project:yt-4.0 Apr 25, 2019
@jzuhone jzuhone deleted the fix_hsmls branch April 25, 2019 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants