Skip to content

Commit

Permalink
fix saving signals from numeric windows
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhrisca committed Mar 18, 2024
1 parent 8d28fdd commit 94d46ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/asammdf/gui/widgets/mdi_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -1552,7 +1552,9 @@ def _add_flexray_bus_trace_window(self, ranges=None):

if "FLX_NullFrame.Dir" in names:
if data["FLX_NullFrame.Dir"].dtype.kind == "S":
columns["Direction"][index] = [v.decode("utf-8") for v in data["FLX_NullFrame.Dir"].tolist()]
columns["Direction"][index] = [
v.decode("utf-8") for v in data["FLX_NullFrame.Dir"].tolist()
]
else:
columns["Direction"][index] = [
"TX" if dir else "RX" for dir in data["FLX_NullFrame.Dir"].astype("u1").tolist()
Expand Down
2 changes: 1 addition & 1 deletion src/asammdf/gui/widgets/numeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -1626,7 +1626,7 @@ def keyPressEvent(self, event):
)

if file_name:
signals = [signal for signal in self.signals if signal.enable]
signals = [signal for signal in self.channels.dataView.signals if signal.enable]
if signals:
with mdf_module.MDF() as mdf:
groups = {}
Expand Down

0 comments on commit 94d46ff

Please sign in to comment.