Skip to content
Snippets Groups Projects

Fix bug not plotting mass position on main window when preference list is selected

Merged Lan Dam requested to merge i129_masspos_main_window_pref_list into master
1 file
+ 5
5
Compare changes
  • Side-by-side
  • Inline
@@ -110,7 +110,7 @@ class MultiThreadedPlottingWidget(PlottingWidget):
def create_plotting_channel_processors(
self, plotting_data: Dict,
need_db_info: bool = False,
need_move_channel: bool = False
is_plotting_data1: bool = False
) -> None:
"""
Create a data processor for each channel data in the order of
@@ -119,10 +119,10 @@ class MultiThreadedPlottingWidget(PlottingWidget):
:param plotting_data: dict of data by chan_id
:param need_db_info: flag to get db info
:param need_move_channel: flag to call
move_soh_channels_with_link_to_the_end()
:param is_plotting_data1: flag to tell if the plotting_data sent is
plotting_data1
"""
chan_order = self.pref_order if self.pref_order \
chan_order = self.pref_order if is_plotting_data1 and self.pref_order \
else sorted(list(plotting_data.keys()))
chan_order = replace_actual_question_chans(
chan_order, list(plotting_data.keys()))
@@ -155,7 +155,7 @@ class MultiThreadedPlottingWidget(PlottingWidget):
f"{', '.join( not_plot_chans)}")
self.processing_log.append((msg, LogType.WARNING))
if need_move_channel:
if is_plotting_data1:
self.move_soh_channels_with_link_to_the_end(chan_order)
for chan_id in chan_order:
Loading