You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I think there might be a bug in the crosslinking operator for
toast3
. I have tested with3.0.0a20
and3.0.0a20.dev12
. In this line I get the errorProc 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
andang
are numpy arrays with the same shape N, however, you are trying to set all the elements ofang
wheretiny
is true to an array with shape N, and presumably the number of elements intiny
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.The text was updated successfully, but these errors were encountered: