diff --git a/src/asammdf/gui/widgets/mdi_area.py b/src/asammdf/gui/widgets/mdi_area.py index b6c5c10e8..c93b018e1 100644 --- a/src/asammdf/gui/widgets/mdi_area.py +++ b/src/asammdf/gui/widgets/mdi_area.py @@ -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() diff --git a/src/asammdf/gui/widgets/numeric.py b/src/asammdf/gui/widgets/numeric.py index 18dfb13f3..505b539fb 100644 --- a/src/asammdf/gui/widgets/numeric.py +++ b/src/asammdf/gui/widgets/numeric.py @@ -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 = {}