Skip to content

Commit

Permalink
small update (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
rieder committed Mar 10, 2022
1 parent 3737310 commit 09dab4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/amuse/community/mesa_r15140/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ def _val2str(self, value):
return '.true.'
else:
return '.false.'
elif isinstance(value, int) or isinstance(value, float):
elif isinstance(value, (int, float)):
return str(value)
else:
if '"' not in value and "'" not in value:
Expand All @@ -595,7 +595,7 @@ def process(val):
pass
return val

if isinstance(value, list) or isinstance(value, numpy.ndarray):
if isinstance(value, (list, numpy.ndarray)):
result = numpy.array([process(i) for i in value])
else:
result = process(value)
Expand Down

0 comments on commit 09dab4e

Please sign in to comment.