Dear maintainer,
yt FTBFS:
=================================== FAILURES ===================================
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
yt/utilities/tests/test_interpolators.py:136:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
yt/utilities/linear_interpolators.py:209: in __call__
x_i = np.digitize(x_vals, self.x_bins).astype("int64") - 1
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/unyt/array.py:2133: in __array_function__
return _HANDLED_FUNCTIONS[func](*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/unyt/_array_functions.py:398: in digitize
sanitized_bins = _sanitize_bins(x, bins)
^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/unyt/_array_functions.py:174: in _sanitize_bins
return bins.to_value(getattr(arr, "units", dimensionless))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/unyt/array.py:1047: in to_value
v = self.in_units(units, equivalence=equivalence, **kwargs).value
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/unyt/array.py:928: in in_units
(conversion_factor, offset) = self.units.get_conversion_factor(
/usr/lib/python3/dist-packages/unyt/unit_object.py:686: in get_conversion_factor
return _get_conversion_factor(self, other_units, dtype)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
old_units = code_length, new_units = dimensionless, dtype = dtype('float64')
def _get_conversion_factor(old_units, new_units, dtype):
"""
Get the conversion factor between two units of equivalent dimensions. This
is the number you multiply data by to convert from values in `old_units` to
values in `new_units`.
Parameters
----------
old_units: str or Unit object
The current units.
new_units : str or Unit object
The units we want.
dtype: NumPy dtype
The dtype of the conversion factor
Returns
-------
conversion_factor : float
`old_units / new_units`
offset : float or None
Offset between the old unit and new unit.
"""
if old_units.dimensions != new_units.dimensions:
old_units, old_units.dimensions, new_units, new_units.dimensions
)
E unyt.exceptions.UnitConversionError: Cannot convert between 'code_length' (dim '(length)') and 'dimensionless' (dim '1').
/usr/lib/python3/dist-packages/unyt/unit_object.py:931: UnitConversionError
See
https://buildd.debian.org/status/fetch.php?pkg=yt&arch=amd64&ver=4.4.2-1%2Bb3&stamp=1793402058&raw=0
for details.
Cheers