use apply_ufunc instead of xr.ufuncs
@AnnikaLau could you please try whether this fixes the issue you have in #1 (closed)? You should be able to install this branch via
pip install git+https://github.com/psyplot/psy-transect.git@fix-ufuncs
closes #1 (closed) closes #3 (closed)