File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 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'):
61496149
61506150 # Combine the masks from x[i] and w[i] (if applicable) into a single
61516151 # 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 ()
61586159
61596160 if color is None :
61606161 color = [self ._get_lines .get_next_color () for i in xrange (nx )]
You can’t perform that action at this time.
0 commit comments