You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.
Please add more grace when trying to handle a bias/flat/image list with uneven image sizes. Numpy doesn't care to concatenate differently sized images and fails on line 189 in biascombine:
ERROR: ValueError: all the input array dimensions except for the concatenation axis must match exactly [numpy.lib.shape_base]
Traceback (most recent call last):
File "", line 1, in
File "//anaconda/lib/python2.7/site-packages/pydis/wrappers.py", line 402, in ReduceTwo
bias = pydis.biascombine(biaslist, trim=trim)
File "//anaconda/lib/python2.7/site-packages/pydis/pydis.py", line 189, in biascombine
all_data = np.dstack( (all_data, im_i) )
File "//anaconda/lib/python2.7/site-packages/numpy/lib/shape_base.py", line 367, in dstack
return _nx.concatenate([atleast_3d(_m) for _m in tup], 2)
ValueError: all the input array dimensions except for the concatenation axis must match exactly
The text was updated successfully, but these errors were encountered:
No work has been done on this, but my understanding is this occurs if the shapes are different between images... what kind of data are you trying to reduce? (where is it from, what shape is it?)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Please add more grace when trying to handle a bias/flat/image list with uneven image sizes. Numpy doesn't care to concatenate differently sized images and fails on line 189 in biascombine:
ERROR: ValueError: all the input array dimensions except for the concatenation axis must match exactly [numpy.lib.shape_base]
Traceback (most recent call last):
File "", line 1, in
File "//anaconda/lib/python2.7/site-packages/pydis/wrappers.py", line 402, in ReduceTwo
bias = pydis.biascombine(biaslist, trim=trim)
File "//anaconda/lib/python2.7/site-packages/pydis/pydis.py", line 189, in biascombine
all_data = np.dstack( (all_data, im_i) )
File "//anaconda/lib/python2.7/site-packages/numpy/lib/shape_base.py", line 367, in dstack
return _nx.concatenate([atleast_3d(_m) for _m in tup], 2)
ValueError: all the input array dimensions except for the concatenation axis must match exactly
The text was updated successfully, but these errors were encountered: