def concatenate_1d(arrays):
if len(arrays) == <NUM_LIT:0>:<EOL><INDENT>return np.array([])<EOL><DEDENT>if len(arrays) == <NUM_LIT:1>:<EOL><INDENT>return np.asanyarray(arrays[<NUM_LIT:0>])<EOL><DEDENT>if any(map(np.ma.is_masked, arrays)):<EOL><INDENT>return np.ma.concatenate(arrays)<EOL><DEDENT>return np.concatenate(arrays)<EOL>
Concatenate 1D numpy arrays.
Similar to np.concatenate but work with empty input and masked arrays.