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
* add `reduce` method to `Score` class for newer xarray
following xarray unpin in brain-score/brainio#25
* cast `condition` coordinate to string
* also cast `condition` to str for precomputed features
* cast clip output to original assembly type
see also brain-score/brainio#27
* keep `importlib-metadata` at version 4
As of xarray 0.18, the
clip
method uses theapply_ufunc
function (pydata/xarray@v0.17.0...v0.18.0#diff-5e1c0e7a002249e30f1e688e4e87af2d67600ce8a240f8b27dccdb28f365c971R381) which in turn usesapply_dataarray_vfunc
and ends up returning a DataArray https://github.com/pydata/xarray/blob/v0.18.0/xarray/core/computation.py#L280.Is there a way to preserve the assembly's original data type? E.g. if we call
<BehavioralAssembly>.clip()
, we getBehavioralAssembly
as output again.Here's a unit test that fails in 0.18 but works in 0.17:
The text was updated successfully, but these errors were encountered: