I was thinking of:
```python
points = lat.points
if len(lat_dims) > 1:
    order = np.argsort(lat_dims)
    points = points.transpose(order)
l_weights = np.cos(points).clip(0., 1.)
```
or similar, but I agree, it's minor so do as you see fit.