Skip to content

Commit

Permalink
numpy dtype classes are strange
Browse files Browse the repository at this point in the history
  • Loading branch information
sroet committed Aug 14, 2024
1 parent fe133b3 commit 404e520
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pytom_tm/tmjob.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,8 @@ def write_to_json(self, file_name: pathlib.Path) -> None:
for key, value in d.items():
if isinstance(value, pathlib.Path):
d[key] = str(value)
# hardcode tpe conversion
d["output_dtype"] = str(d["output_dtype"])
# wrangle dtype conversion
d["output_dtype"] = str(np.dtype(d["output_dtype"]))
with open(file_name, "w") as fstream:
json.dump(d, fstream, indent=4)

Expand Down

0 comments on commit 404e520

Please sign in to comment.