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

ScalarQuantities now convert strings to floats #934

Merged
merged 1 commit into from
Mar 7, 2023

Conversation

rieder
Copy link
Member

@rieder rieder commented Mar 6, 2023

Possible solution for #172, if it doesn't break anything

@rieder rieder requested a review from a team as a code owner March 6, 2023 22:06
@rieder
Copy link
Member Author

rieder commented Mar 6, 2023

I think this is ok, I can't think of a reason why a quantity would consist of a string with a unit... Currently it's possible and this can lead to weird errors.

@rieder
Copy link
Member Author

rieder commented Mar 7, 2023

units.stellar_type is probably a case that should be handled differently?

@rieder
Copy link
Member Author

rieder commented Mar 7, 2023

ah, that's not a ScalarQuantity.

@rieder rieder changed the title quantities now convert strings to floats ScalarQuantities now convert strings to floats Mar 7, 2023
@rieder rieder merged commit 610ffe8 into amusecode:main Mar 7, 2023
@rieder rieder deleted the quantities_convert_str branch March 7, 2023 08:30
rieder added a commit that referenced this pull request Mar 7, 2023
@rieder rieder restored the quantities_convert_str branch March 7, 2023 09:38
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.

None yet

1 participant