Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

ReduceTwo not breaking gracefully #41

Open
kweis opened this issue Sep 20, 2015 · 3 comments
Open

ReduceTwo not breaking gracefully #41

kweis opened this issue Sep 20, 2015 · 3 comments

Comments

@kweis
Copy link

kweis commented Sep 20, 2015

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

@kweis
Copy link
Author

kweis commented Sep 20, 2015

I suspect this problem is true for all image reduction so add a warning or error message to all bias/flat reduction sections

@HeisenbergK
Copy link

Hello, do we have any news on that?
I'm trying to do a bias combine and get the same error

@jradavenport jradavenport changed the title ReduceTwo not shitting the bed gracefully ReduceTwo breaking gracefully Oct 3, 2019
@jradavenport jradavenport changed the title ReduceTwo breaking gracefully ReduceTwo not breaking gracefully Oct 3, 2019
@jradavenport
Copy link
Member

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 free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants