-
Notifications
You must be signed in to change notification settings - Fork 21
Closed
Labels
Description
In the cell #2, it the coordinate name has [bin-edge] mark but in the cell #3, lat coordinate doesn't have the [bin-edge] mark.
In the cell #2, the coordinate names are not bold not like other bin-edges in the call #3.
So far it was observed when a single bin is selected, and none of issues happens when the bin size is 1 when created, i.e. da.bin(longi=1, lati=1)
Code snippet to reproduce this issue is below the screen shot image.
import scipp as sc
import numpy as np
rng = np.random.default_rng(123)
da = sc.DataArray(data=sc.ones(sizes={"row": 1000}, unit="counts"),
coords={'long': sc.array(dims=['row'], values=rng.random(1000)),
'lat': sc.array(dims=['row'], values=rng.random(1000)),
'time': sc.array(dims=['row'], values=rng.random(1000))})
da.bin(long=10, lat=10)['long', :2]['lat', 2]
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done
