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

fix: typing for Dataset.cosmological_simulation #3156

Merged
merged 1 commit into from
Mar 29, 2021

Conversation

neutrinoceros
Copy link
Member

@neutrinoceros neutrinoceros commented Mar 28, 2021

PR Summary

This attribute is supposed to be an int and is wrongly set to a float in some frontends.
It should really be an bool but that's beyond the scope of this PR

edit: while I'm at it I split separate statements into separate lines to clarify formatting in these regions

…float

split poorly formatted statements into separate lines
Copy link
Member

@matthewturk matthewturk left a comment

Choose a reason for hiding this comment

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

Seems OK, but I'm also ambivalent about float/int/bool for this. ;-)

@neutrinoceros
Copy link
Member Author

What do you mean ?
My personal opinion is that this parameter should probably be a bool, but I don't know why it was made an int in the first place so I'm not questioning it here. In any case it's documented as an int.

@matthewturk
Copy link
Member

matthewturk commented Mar 29, 2021 via email

@munkm munkm merged commit b64e4c6 into yt-project:main Mar 29, 2021
@neutrinoceros neutrinoceros deleted the cosmo_int branch March 29, 2021 14:47
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants