diff --git a/fsl/utils/transform.py b/fsl/utils/transform.py index 660148d00f2411c2961adc6ef9c20b6f3cf39273..4bb17bc570bff89d0614b8e398fb657c411abcb8 100644 --- a/fsl/utils/transform.py +++ b/fsl/utils/transform.py @@ -62,6 +62,8 @@ def scaleOffsetXform(scales, offsets): if not isinstance(scales, collections.Sequence): scales = [scales] if not isinstance(offsets, collections.Sequence): offsets = [offsets] + if not isinstance(scales, list): scales = list(scales) + if not isinstance(offsets, list): offsets = list(offsets) lens = len(scales) leno = len(offsets)