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

Maybe a bug in crosslinking in toast3 #720

Open
chervias opened this issue Dec 11, 2023 · 0 comments
Open

Maybe a bug in crosslinking in toast3 #720

chervias opened this issue Dec 11, 2023 · 0 comments

Comments

@chervias
Copy link

I think there might be a bug in the crosslinking operator for toast3. I have tested with 3.0.0a20 and 3.0.0a20.dev12. In this line I get the error
Proc 0: ValueError: NumPy boolean array indexing assignment cannot assign 14739 input values to the 2053 output values where the mask is true.
dtheta , dphi, tiny and ang are numpy arrays with the same shape N, however, you are trying to set all the elements of ang where tiny is true to an array with shape N, and presumably the number of elements in tiny that are true will be always smaller than N.
If I replace this line with ang[tiny] = np.sign(dtheta[tiny]) * np.sign(dphi[tiny]) * np.pi / 2, then it works as it should I think.

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