Skip to content

The wmin/wmax params of source no longer accept integers #147

Description

@jl-wynen

It used to be possible to construct a source using

tof.Source(facility="ess", pulses=5, wmax=10*ang)

But since version 26.6.0, this raises

scipp._scipp.core.DTypeError: 'copy' does not support dtypes 'float64', 'int64',

which comes from

wavelength=sc.concat([wmin, wmin, wmax, wmax, wmin], dim='vertex'),

This can be circumvented by changing the call to

tof.Source(facility="ess", pulses=5, wmax=10.0*ang)

We are usually not that strict about dtypes. Maybe we should automatically convert to float64 here.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions