Commit 773b64cd authored by Julia Garriga Ferrer's avatar Julia Garriga Ferrer
Browse files

[core][process] Check if 'step' property is None

parent 7d47b254
......@@ -74,7 +74,7 @@ class _NoiseRemoval:
dataset, indices, li_indices, bg_dataset = dataset
method = self._properties['method'] if 'method' in self._properties else ''
background_type = self._properties['background_type'] if 'background_type' in self._properties else ''
step = int(self._properties['step']) if 'step' in self._properties and self._properties['step'] != '' else None
step = int(self._properties['step']) if 'step' in self._properties and self._properties['step'] else None
chunks = self._properties['chunks'] if 'chunks' in self._properties and self._properties['chunks'] else None
bg = None
if background_type == "Dark data":
......@@ -82,7 +82,6 @@ class _NoiseRemoval:
elif background_type == "Low intensity data":
bg = li_indices
size = self._properties['kernel_size'] if 'kernel_size' in self._properties else ''
print(step, chunks)
if method != '':
dataset = dataset.apply_background_subtraction(indices=indices, method=method, background=bg, step=step, chunk_shape=chunks)
if size != '':
......
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