numpy.ma.split_array
does not exist.
Consequently, does the following code works as intended if arr
is a masked array?
np.array_split(arr, multiprocessing.cpu_count())
If not, how should I define a function split_masked_array
to achieve similar behavior?
Not sure why you didn't just try. Seems to work, but it's hard to tell for sure since you didn't provide a minimal reproducible example so I don't know what "works as intended" means.