Skip to content

Commit

Permalink
[io] Fix missing np.float128
Browse files Browse the repository at this point in the history
  • Loading branch information
holl- committed Apr 13, 2023
1 parent 6f72bda commit 7c4de0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phi/field/_scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def put_properties(self, update: dict = None, **kw_updates):
for key, value in self._properties.items():
if isinstance(value, (np.int64, np.int32)):
value = int(value)
elif isinstance(value, (np.float32, np.float64, np.float16, np.float128)):
elif isinstance(value, (np.float16, np.float32, np.float64, np.float16)) or (hasattr(np, 'float128') and isinstance(value, np.float128)):
value = float(value)
self._properties[key] = value
self._write_properties()
Expand Down

0 comments on commit 7c4de0d

Please sign in to comment.