File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -6149,12 +6149,13 @@ def _normalize_input(inp, ename='input'):
6149
6149
6150
6150
# Combine the masks from x[i] and w[i] (if applicable) into a single
6151
6151
# mask and apply it to both.
6152
- for i in range (len (x )):
6153
- mask_i = x [i ].mask
6154
- if w [i ] is not None :
6155
- mask_i = mask_i & w [i ].mask
6156
- w [i ] = np .ma .masked_array (w [i ], mask = mask_i ).compressed ()
6157
- x [i ] = np .ma .masked_array (x [i ], mask = mask_i ).compressed ()
6152
+ if not input_empty :
6153
+ for i in range (len (x )):
6154
+ mask_i = x [i ].mask
6155
+ if w [i ] is not None :
6156
+ mask_i = mask_i & w [i ].mask
6157
+ w [i ] = np .ma .masked_array (w [i ], mask = mask_i ).compressed ()
6158
+ x [i ] = np .ma .masked_array (x [i ], mask = mask_i ).compressed ()
6158
6159
6159
6160
if color is None :
6160
6161
color = [self ._get_lines .get_next_color () for i in xrange (nx )]
You can’t perform that action at this time.
0 commit comments