Skip to content

Commit 99ae981

Browse files
committed
indentation sorted
1 parent a58674b commit 99ae981

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

mantidimaging/gui/windows/operations/presenter.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -275,13 +275,13 @@ def _post_filter(self, updated_stacks: list[ImageStack], task):
275275
# otherwise check with user which one to keep
276276
if self.view.safeApply.isChecked():
277277
use_new_data = self._wait_for_stack_choice(stack, stack.id)
278-
# if the stack that was kept happened to have a proj180 stack - then apply the filter to that too
279-
if stack.has_proj180deg() and use_new_data and not self.applying_to_all:
280-
if self.model.selected_filter.allow_for_180_projection:
281-
# Apply to proj180 synchronously - this function is already running async
282-
# and running another async instance causes a race condition in the parallel module
283-
# where the shared data can be removed in the middle of the operation of another operation
284-
self._do_apply_filter_sync([stack.proj180deg])
278+
# if the stack that was kept happened to have a proj180 stack - then apply the filter to that too
279+
if stack.has_proj180deg() and use_new_data and not self.applying_to_all:
280+
if self.model.selected_filter.allow_for_180_projection:
281+
# Apply to proj180 synchronously - this function is already running async
282+
# and running another async instance causes a race condition in the parallel module
283+
# where the shared data can be removed in the middle of the operation of another operation
284+
self._do_apply_filter_sync([stack.proj180deg])
285285
if np.any(stack.data < 0):
286286
negative_stacks.append(stack)
287287

0 commit comments

Comments
 (0)