def _rec_to_ndarr(rec_arr, data_type=float):
    '\n    Function to transform a numpy record array to a nd array.\n    dupe of SimPEG.electromagnetics.natural_source.utils.rec_to_ndarr to avoid circular import\n    '
    return np.array(recFunc.structured_to_unstructured(recFunc.repack_fields(rec_arr[list(rec_arr.dtype.names)])), dtype=data_type)
Function to transform a numpy record array to a nd array.
dupe of SimPEG.electromagnetics.natural_source.utils.rec_to_ndarr to avoid circular import
def _rec_to_ndarr(rec_arr, data_type=float):
    '\n    Function to transform a numpy record array to a nd array.\n    dupe of SimPEG.electromagnetics.natural_source.utils.rec_to_ndarr to avoid circular import\n    '
    return np.array(recFunc.structured_to_unstructured(recFunc.repack_fields(rec_arr[list(rec_arr.dtype.names)])), dtype=data_type)