Commit 3546686f authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Bugfix.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent d27092ea
......@@ -303,10 +303,10 @@ class SensorMapGeometryTransformer(object):
elif self.resamp_alg == 'gauss':
# ensure that sigmas are provided as list if data is 3-dimensional
if data.ndim != 2:
n_sigmas = len(opts['sigmas']) # noqa
if not isinstance(opts['sigmas'], list):
opts['sigmas'] = [opts['sigmas']] * data.ndim
n_sigmas = len(opts['sigmas']) # noqa
if not n_sigmas == data.ndim:
raise ValueError("The 'sigmas' parameter must have the same number of values like data.ndim."
"n_sigmas: %d; data.ndim: %d" % (n_sigmas, data.ndim))
......
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