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
{{ message }}
Repository navigation
Grid.moments with Cartesian orders fails on 1D grids #334
The dim == 1 branch of generate_orders_horton_order returns np.arange(0, order + 1, dtype=np.int), and np.int was removed in NumPy 1.24. Even with a valid dtype, it returns every order from 0 to n, not the single row [n] that the 2D and 3D branches return, so the np.vstack in Grid.moments can't stack the rows.
I'd like to fix this by returning [[order]] for dim=1, with tests for both the function and a 1D Grid.moments call. I have a small patch ready.
Made a mistake and thought I was co-piloting a code review when istead it was co-piloting a resolution of the issue. Interesting that it does this now....probably pretty useful for simple updates/changes/bugfixes.
Activity
PaulWAyers commentedon Sep 30, 2026
Made a mistake and thought I was co-piloting a code review when istead it was co-piloting a resolution of the issue. Interesting that it does this now....probably pretty useful for simple updates/changes/bugfixes.