This came up when trying to save values from Scipp variables to an Orso file.
In recent versions of Scipp, var.value() now returns numpy types, e.g. np.float64 instead ofpython float.
We use the item() method to convert them to a python type before sending to yaml which cannot handle the numpy scalars.
This came up when trying to save values from Scipp variables to an Orso file. In recent versions of Scipp, var.value() now returns numpy types, e.g.
np.float64
instead ofpythonfloat
. We use theitem()
method to convert them to a python type before sending to yaml which cannot handle the numpy scalars.