Skip to content

Commit

Permalink
small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rieder committed Jul 8, 2024
1 parent a95b3e5 commit 9d20f4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/amuse/units/quantities.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def is_vector(self):
return False

def __repr__(self):
return "quantity<" + str(self) + ">"
return f"quantity<{self}>"

def __add__(self, other):
if self.unit.is_zero():
Expand Down Expand Up @@ -1199,7 +1199,7 @@ def __str__(self):
return self.unit.value_to_string(self.value)

def __repr__(self):
return f"quantity<{str(self.value)} - {str(self)}>"
return f"quantity<{self.value} - {self}>"

def as_vector_with_length(self, length):
return VectorQuantity(numpy.array([self.value] * length), self.unit)
Expand Down

0 comments on commit 9d20f4f

Please sign in to comment.