Skip to content

Commit

Permalink
Revert "ScalarQuantity now converts strings to floats (#934)"
Browse files Browse the repository at this point in the history
This reverts commit 610ffe8.
  • Loading branch information
rieder committed Mar 7, 2023
1 parent 610ffe8 commit bda91f8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/amuse/units/quantities.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,6 @@ def __init__(self, number, unit):
# Quantity.__init__(self, unit)
# commented out super call, this speeds thing up
self.unit = unit
if isinstance(number, str):
number = float(number)
if unit.dtype is None:
self.number = number
else:
Expand Down

1 comment on commit bda91f8

@rieder
Copy link
Member Author

@rieder rieder commented on bda91f8 Mar 7, 2023

Choose a reason for hiding this comment

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

Revert #934 for now, since it created an issue with the mesa_r15140 interface

Please sign in to comment.