Skip to content

Commit

Permalink
Added change to presenter
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmeigh committed Aug 12, 2024
1 parent ceec683 commit a58674b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mantidimaging/gui/windows/operations/presenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,9 @@ def _post_filter(self, updated_stacks: list[ImageStack], task):
# otherwise check with user which one to keep
if self.view.safeApply.isChecked():
use_new_data = self._wait_for_stack_choice(stack, stack.id)
# if the stack that was kept happened to have a proj180 stack - then apply the filter to that too
if stack.has_proj180deg() and use_new_data and not self.applying_to_all:
# if the stack that was kept happened to have a proj180 stack - then apply the filter to that too
if stack.has_proj180deg() and use_new_data and not self.applying_to_all:
if self.model.selected_filter.allow_for_180_projection:
# Apply to proj180 synchronously - this function is already running async
# and running another async instance causes a race condition in the parallel module
# where the shared data can be removed in the middle of the operation of another operation
Expand Down

0 comments on commit a58674b

Please sign in to comment.