Skip to content

Commit

Permalink
make linter happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaranville authored Jul 1, 2024
1 parent d2ea57e commit c529619
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion orsopy/fileio/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,9 @@ def to_nexus(self, root=None, name=None):
# special handling for null datasets: no data
item_out = child_group.create_dataset(sub_name, dtype="f")
elif isinstance(t_value, dict):
item_out = child_group.create_dataset(sub_name, data=json.dumps(t_value, default=lambda o: o.__dict__))
item_out = child_group.create_dataset(
sub_name, data=json.dumps(t_value, default=lambda o: o.__dict__)
)
item_out.attrs["mimetype"] = JSON_MIMETYPE
else:
# raise ValueError(f"unserializable attribute found: {child_name}[{index}] = {t_value}")
Expand Down

0 comments on commit c529619

Please sign in to comment.