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

HSM fails on Image constructed from flipped numpy array #1185

Closed
jmeyers314 opened this issue Oct 20, 2022 · 1 comment · Fixed by #1186
Closed

HSM fails on Image constructed from flipped numpy array #1185

jmeyers314 opened this issue Oct 20, 2022 · 1 comment · Fixed by #1186
Milestone

Comments

@jmeyers314
Copy link
Member

import galsim
img = galsim.Gaussian(fwhm=1).drawImage()
galsim.hsm.FindAdaptiveMom(galsim.Image(img.array[::-1]))

gives

RuntimeError: Failed Assert: newdata < _maxptr at src/Image.cpp:374

in version >= 2.4

Works in version = 2.3.

rmjarvis added a commit that referenced this issue Oct 21, 2022
@rmjarvis rmjarvis linked a pull request Oct 21, 2022 that will close this issue
@rmjarvis
Copy link
Member

Sorry. My bad. #1186

rmjarvis added a commit that referenced this issue Oct 21, 2022
rmjarvis added a commit that referenced this issue Oct 21, 2022
rmjarvis added a commit that referenced this issue Oct 21, 2022
rmjarvis added a commit that referenced this issue Oct 21, 2022
rmjarvis added a commit that referenced this issue Oct 21, 2022
rmjarvis added a commit that referenced this issue Oct 21, 2022
rmjarvis added a commit that referenced this issue Oct 21, 2022
@rmjarvis rmjarvis added this to the v2.4 milestone Oct 12, 2023
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

Successfully merging a pull request may close this issue.

2 participants