Commit ca2ad08a authored by Julia Garriga Ferrer's avatar Julia Garriga Ferrer
Browse files

[gui][noiseremoval] Set steps or chunks to None only if other is not

parent 9c19609b
Pipeline #50878 passed with stage
in 3 minutes and 12 seconds
......@@ -26,7 +26,7 @@
__authors__ = ["J. Garriga"]
__license__ = "MIT"
__date__ = "09/02/2021"
__date__ = "20/07/2021"
import logging
......@@ -280,13 +280,13 @@ class NoiseRemovalWidget(qt.QMainWindow):
else:
bg = None
self._chunks = None
self._step = None
if self._parametersDock.inDiskWidget.isVisible():
if self._parametersDock.inDiskCheckbox.isChecked():
self._step = None
self._chunks = [int(self._parametersDock.verticalChunkSize.text()),
int(self._parametersDock.horizontalChunkSize.text())]
else:
self._chunks = None
self._step = int(self._parametersDock.step.text())
self._thread = OperationThread(self, self._update_dataset.apply_background_subtraction)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment