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

Broken comparison operator? #851

Open
keflavich opened this issue Oct 29, 2022 · 0 comments
Open

Broken comparison operator? #851

keflavich opened this issue Oct 29, 2022 · 0 comments

Comments

@keflavich
Copy link
Contributor

I encountered the strangest situation with a slice of a PSF where the PSF was all zero (which shouldn't occur to begin with, but...)

ipdb> print(psf.max() <= 0)
True
ipdb> print(psf.max() == 0)
False
ipdb> print(psf.max() < 0)
False
ipdb> psf.max()
<Slice 0.>

this is thoroughly impossible and implies that the comparison operators attached to Slice (and other LDO?) objects are broken somehow.

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

1 participant