File tree 1 file changed +3
-2
lines changed 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 17
17
from xarray .core .alignment import align , deep_align
18
18
from xarray .core .common import zeros_like
19
19
from xarray .core .duck_array_ops import datetime_to_numeric
20
+ from xarray .core .formatting import limit_lines
20
21
from xarray .core .indexes import Index , filter_indexes_from_coords
21
22
from xarray .core .merge import merge_attrs , merge_coordinates_without_align
22
23
from xarray .core .options import OPTIONS , _get_keep_attrs
@@ -769,8 +770,8 @@ def func(*arrays):
769
770
raise ValueError (
770
771
f"applied function does not have the number of "
771
772
f"outputs specified in the ufunc signature. "
772
- f"Result is not a tuple of { signature . num_outputs } elements:\n \n "
773
- f"{ short_array_repr (result_data )} "
773
+ f"Received a { type ( result_data ) } with { len ( result_data ) } elements instead :\n \n "
774
+ f"{ limit_lines (result_data , limit = 10 )} "
774
775
)
775
776
776
777
objs = _all_of_type (args , Variable )
You can’t perform that action at this time.
0 commit comments