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

integrateImageStack energy index error #108

Open
cbishop4 opened this issue Sep 14, 2023 · 2 comments
Open

integrateImageStack energy index error #108

cbishop4 opened this issue Sep 14, 2023 · 2 comments

Comments

@cbishop4
Copy link
Collaborator

When using integrateImageStack on a loaded series that was stacked along 'polarization', I get the following error:

File ~/PyHyperScattering/src/PyHyperScattering/PFEnergySeriesIntegrator.py:60, in PFEnergySeriesIntegrator.integrateSingleImage(self, img)
58 if n == 'energy':
59 idx_of_energy = i
---> 60 en = float(getattr(img,multiindex_name).values[idx_of_energy][0])
61 except KeyError:
62 pass

IndexError: index 1 is out of bounds for axis 0 with size 1

This is specifically happening with scans 39911, 39912, 39913, and 39914, from cycle 2022-2.

@pbeaucage
Copy link
Collaborator

Are these energy+polarization scans, or just pure polarization scans?

@cbishop4
Copy link
Collaborator Author

Energy+polarization, I think I should be able to quick fix it and push the changes this afternoon (unless you're about to tell me something I'm missing)

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