Commit 4fd2295c authored by Julia Garriga Ferrer's avatar Julia Garriga Ferrer
Browse files

[core][process] Checkout kind to choose transformation to apply

parent 969641f8
...@@ -282,11 +282,13 @@ class _Transformation: ...@@ -282,11 +282,13 @@ class _Transformation:
dataset, indices, li_indices, bg_dataset = dataset dataset, indices, li_indices, bg_dataset = dataset
magnification = self._properties['magnification'] if 'magnification' in self._properties else None magnification = self._properties['magnification'] if 'magnification' in self._properties else None
pixelSize = self._properties['pixelSize'] if 'pixelSize' in self._properties else None pixelSize = self._properties['pixelSize'] if 'pixelSize' in self._properties else None
kind = self._properties['kind'] if 'kind' in self._properties else True
rotate = self._properties['rotate'] if 'rotate' in self._properties else None rotate = self._properties['rotate'] if 'rotate' in self._properties else None
if dataset and dataset.dims.ndim: if dataset and dataset.dims.ndim:
if dataset.dims.ndim == 1: if dataset.dims.ndim == 1 and kind:
dataset.compute_transformation(PixelSize[pixelSize].value, dataset.compute_transformation(PixelSize[pixelSize].value,
rotate) kind="rsm",
rotate=rotate)
else: else:
dataset.compute_transformation(magnification) dataset.compute_transformation(magnification)
return dataset, indices, li_indices, bg_dataset return dataset, indices, li_indices, bg_dataset
......
Supports Markdown
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