You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I tried to test integer edges and groups, I got this error message like below.
As I was looking into the c++ code, I knew that it was because the dtype of the target coordinate and the given edges don't match.
However, I think it might be hard to understand for users who only have access to the python layer. grouping gives similar error message.
edges=sc.linspace('x', 0, 100, 101, unit='m', dtype=int)
table=sc.data.table_xyz(10_000)*100table.bin(x=edges)
# DTypeError: 'scipp.bin.update_indices_by_binning_linspace' does not support dtypes 'int32', 'float64', 'span_const_int64',
Should we improve the error message by checking the dtype of the given edges or groups in the earlier place...?
The text was updated successfully, but these errors were encountered:
When I tried to test integer edges and groups, I got this error message like below.
As I was looking into the c++ code, I knew that it was because the
dtype
of the target coordinate and the givenedges
don't match.However, I think it might be hard to understand for users who only have access to the python layer.
group
ing gives similar error message.Should we improve the error message by checking the
dtype
of the given edges or groups in the earlier place...?The text was updated successfully, but these errors were encountered: