Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shape of Mask and Shape of Image #15

Open
cseuring opened this issue Aug 15, 2018 · 3 comments
Open

Shape of Mask and Shape of Image #15

cseuring opened this issue Aug 15, 2018 · 3 comments

Comments

@cseuring
Copy link

I want to do hitfinding and therefore create a mask.

I get this error message when running the mask module.
Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/psocake/MaskPanel.py", line 754, in deployMask
File "build/bdist.linux-x86_64/egg/psocake/MaskPanel.py", line 682, in getCombinedStaticMask
ValueError: operands could not be broadcast together with shapes (1738,1742) (32,185,388) (1738,1742)

Is this a problem for the saved masks? The saved masks have a dimension of either .h5 format (32,185,388) or in .npy format (1480,1552), there is no assembled mask (1738,1742).

@chuckie82
Copy link
Contributor

(1738,1742) seems way to big for a cspad.
Can you point me to the experiment name/run number and are you making a custom mask? I will try to reproduce it in the morning.

@cseuring
Copy link
Author

cseuring commented Aug 15, 2018 via email

@chuckie82
Copy link
Contributor

I get the following mask shapes which looks correct. Could you describe the steps you are using to create this mask?

mask.npy
(32, 185, 388)

staticMask.h5
<HDF5 dataset "mask": shape (1480, 1552), type "<i8">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants