From c529619c945f384c284c181faf972c912e6dd2e5 Mon Sep 17 00:00:00 2001 From: Brian Benjamin Maranville Date: Mon, 1 Jul 2024 10:06:23 -0400 Subject: [PATCH] make linter happy. --- orsopy/fileio/base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/orsopy/fileio/base.py b/orsopy/fileio/base.py index 6d82bba..76f7dea 100644 --- a/orsopy/fileio/base.py +++ b/orsopy/fileio/base.py @@ -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}")