Skip to content

Commit

Permalink
apply Black changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kerberizer committed Sep 2, 2024
1 parent 03a0e98 commit 0302dc0
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/pyambit/nexus_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,9 @@ def is_alternate_axis(key: str, alt_axes: Dict[str, List[str]]) -> bool:
nx.tree.NXfield(
effect.axes[key].values,
name=key.replace("/", "_"),
long_name="{} {}".format(key,"" if effect.axes[key].unit is None else effect.axes[key].unit).strip(),
long_name="{} {}".format(
key, "" if effect.axes[key].unit is None else effect.axes[key].unit
).strip(),
errors=effect.axes[key].errorValue,
units=effect.axes[key].unit,
)
Expand All @@ -442,7 +444,9 @@ def is_alternate_axis(key: str, alt_axes: Dict[str, List[str]]) -> bool:
effect.signal.values,
name="value",
units=effect.signal.unit,
long_name="{} {}".format(effect.endpoint,"" if effect.signal.unit is None else effect.signal.unit).strip()
long_name="{} {}".format(
effect.endpoint, "" if effect.signal.unit is None else effect.signal.unit
).strip(),
)
aux_signals = []
if effect.signal.auxiliary:
Expand All @@ -454,7 +458,11 @@ def is_alternate_axis(key: str, alt_axes: Dict[str, List[str]]) -> bool:
_tmp,
name=a.replace("/", "_"),
units=effect.signal.unit,
long_name="{} ({}) {}".format(effect.endpoint, a,"" if effect.signal.unit is None else effect.signal.unit).strip()
long_name="{} ({}) {}".format(
effect.endpoint,
a,
"" if effect.signal.unit is None else effect.signal.unit,
).strip(),
)
)
# print(a,aux_signal)
Expand Down

0 comments on commit 0302dc0

Please sign in to comment.