Skip to content

bin-edge label and alignment indication are missing for a selected bin. #3207

@YooSunYoung

Description

@YooSunYoung

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.

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

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions