Skip to content

Commit

Permalink
auto use a given pre and post processing custom func
Browse files Browse the repository at this point in the history
  • Loading branch information
mattclifford1 committed Jul 3, 2024
1 parent ed6785e commit b186e25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IQM_Vis/UI/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def _init_image_settings(self):
if str(data_store.image_pre_processing) not in [str(f) for f in self.pre_processing_options.values()]:
name = f"Custom {i}"
self.pre_processing_options[name] = data_store.image_pre_processing
init_val = name
self.pre_processing_option = name
combobox_pre = QComboBox()
combobox_pre.addItems(list(self.pre_processing_options.keys()))
combobox_pre.setCurrentText(self.pre_processing_option)
Expand All @@ -315,7 +315,7 @@ def _init_image_settings(self):
if data_store.image_post_processing not in list(self.post_processing_options.values()):
name = f"Custom {i}"
self.post_processing_options[name] = data_store.image_post_processing
init_val = name
self.post_processing_option = name
combobox_post = QComboBox()
combobox_post.addItems(list(self.post_processing_options.keys()))
combobox_post.setCurrentText(self.post_processing_option)
Expand Down

0 comments on commit b186e25

Please sign in to comment.