The source project of this merge request has been removed.
WIP: Change rounding in h2gpts
Using np.around causes h2gpts to actually round towards the nearest valid value for gpts, rather than always rounding down. This helps have a closer effective grid and a less anisotropic grid.
It seems like (31, 31, 38) with idiv=16 currently rounds to (16, 16, 32) rather than (32, 32, 32) and that is what this MR fixes.
Update: This only worked because I was rounding up with a shift, someone should revist this issue at some point.
Edited by Tristan Maxson