File tree 2 files changed +3
-4
lines changed 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1113,14 +1113,13 @@ def _broadcast_with_masks(*args, compress=False):
1113
1113
masks = bcast [len (args ):]
1114
1114
if masks :
1115
1115
# combine the masks into one
1116
- mask = functools . reduce ( np .logical_or , masks )
1116
+ mask = np .logical_or . reduce ( masks )
1117
1117
# put mask on and compress
1118
1118
if compress :
1119
1119
inputs = [np .ma .array (k , mask = mask ).compressed ()
1120
1120
for k in inputs ]
1121
1121
else :
1122
- inputs = [np .ravel (np .ma .array (k , mask = mask ,
1123
- dtype = float ).filled (np .nan ))
1122
+ inputs = [np .ma .array (k , mask = mask , dtype = float ).filled (np .nan ).ravel ()
1124
1123
for k in inputs ]
1125
1124
else :
1126
1125
inputs = [np .ravel (k ) for k in inputs ]
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ class GrouperView(Generic[_T]):
130
130
131
131
def simple_linear_interpolation (a : ArrayLike , steps : int ) -> np .ndarray : ...
132
132
def delete_masked_points (* args ): ...
133
- def _broadcast_with_masks (* args , compress : bool = False ) -> list [ArrayLike ]: ...
133
+ def _broadcast_with_masks (* args : ArrayLike , compress : bool = ... ) -> list [ArrayLike ]: ...
134
134
def boxplot_stats (
135
135
X : ArrayLike ,
136
136
whis : float | tuple [float , float ] = ...,
You can’t perform that action at this time.
0 commit comments