From c773af8ddfa4ec26b38e2d8a6eae4d448243aef3 Mon Sep 17 00:00:00 2001 From: Renan Date: Tue, 1 Oct 2024 22:46:02 +0300 Subject: [PATCH] ruff --- invesalius/data/visualization/mep_visualizer.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/invesalius/data/visualization/mep_visualizer.py b/invesalius/data/visualization/mep_visualizer.py index 94acb3cb2..0b38596c3 100644 --- a/invesalius/data/visualization/mep_visualizer.py +++ b/invesalius/data/visualization/mep_visualizer.py @@ -263,12 +263,18 @@ def _FilterMarkers(self, markers_list): markers.append(marker.to_dict()) # Find objects in the new list that are not in the old list (added) - added_objects = [new_obj for new_obj in markers if - not any((new_obj == old_obj) for old_obj in self.marker_storage)] + added_objects = [ + new_obj + for new_obj in markers + if not any((new_obj == old_obj) for old_obj in self.marker_storage) + ] # Find objects in the old list that are not in the new list (removed) - removed_objects = [old_obj for old_obj in self.marker_storage if - not any((old_obj == new_obj) for new_obj in markers)] + removed_objects = [ + old_obj + for old_obj in self.marker_storage + if not any((old_obj == new_obj) for new_obj in markers) + ] # Check if the lists have changed if not bool(added_objects or removed_objects):