diff --git a/src/asammdf/blocks/utils.py b/src/asammdf/blocks/utils.py index 22dca197e..10a41cb48 100644 --- a/src/asammdf/blocks/utils.py +++ b/src/asammdf/blocks/utils.py @@ -2123,15 +2123,21 @@ def parse_channels(display, conversions): elif elem.tag == "CHANNEL_PATTERN": try: filter_type = elem.get("filter_type") - if filter_type == "None": + if filter_type in ("None", None): filter_type = "Unspecified" + filter_value = 0 + raw = False + else: + filter_value = float(elem.get("filter_value")) + raw = bool(int(elem.get("filter_use_raw"))) + info = { "pattern": elem.get("name_pattern"), "name": elem.get("name_pattern"), "match_type": "Wildcard", "filter_type": filter_type, - "filter_value": float(elem.get("filter_value")), - "raw": bool(int(elem.get("filter_use_raw"))), + "filter_value": filter_value, + "raw": raw, } multi_color = elem.find("MULTI_COLOR") diff --git a/src/asammdf/gui/widgets/plot.py b/src/asammdf/gui/widgets/plot.py index 154502e67..ad8f35775 100644 --- a/src/asammdf/gui/widgets/plot.py +++ b/src/asammdf/gui/widgets/plot.py @@ -5430,6 +5430,7 @@ def range_modified_handler(self, region): def scale_curve_to_pixmap(self, x, y, y_range, x_start, delta): if self.py: y_low, y_high = y_range + y_scale = (np.float64(y_high) - np.float64(y_low)) / np.float64(self.py) x_scale = self.px