(sizes, k)
| 163 | |
| 164 | @staticmethod |
| 165 | def _calc_offsets(sizes, k): |
| 166 | # Apply k factors to (n, 2) sizes array of (rel_size, abs_size); return |
| 167 | # the resulting cumulative offset positions. |
| 168 | return np.cumsum([0, *(sizes @ [k, 1])]) |
| 169 | |
| 170 | def new_locator(self, nx, ny, nx1=None, ny1=None): |
| 171 | """ |