File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 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):
11131113 masks = bcast [len (args ):]
11141114 if masks :
11151115 # combine the masks into one
1116- mask = functools . reduce ( np .logical_or , masks )
1116+ mask = np .logical_or . reduce ( masks )
11171117 # put mask on and compress
11181118 if compress :
11191119 inputs = [np .ma .array (k , mask = mask ).compressed ()
11201120 for k in inputs ]
11211121 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 ()
11241123 for k in inputs ]
11251124 else :
11261125 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]):
130130
131131def simple_linear_interpolation (a : ArrayLike , steps : int ) -> np .ndarray : ...
132132def 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 ]: ...
134134def boxplot_stats (
135135 X : ArrayLike ,
136136 whis : float | tuple [float , float ] = ...,
You can’t perform that action at this time.
0 commit comments