Skip to content

Commit

Permalink
make json writing OS agnostic in tmjob.py (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
sroet authored Feb 7, 2024
1 parent 7d60c5b commit bc1fced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pytom_tm/tmjob.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def write_to_json(self, file_name: pathlib.Path) -> None:
d['search_y'] = [self.search_origin[1], self.search_origin[1] + self.search_size[1]]
d['search_z'] = [self.search_origin[2], self.search_origin[2] + self.search_size[2]]
for key, value in d.items():
if isinstance(value, pathlib.PosixPath):
if isinstance(value, pathlib.Path):
d[key] = str(value)
with open(file_name, 'w') as fstream:
json.dump(d, fstream, indent=4)
Expand Down

0 comments on commit bc1fced

Please sign in to comment.