sidpy/hdf/reg_ref.py
def copy_all_region_refs(h5_source, h5_target):
    """
    Copies only region references from the source dataset to the target dataset

    Parameters
    ----------
    h5_source : h5py.Dataset
        Dataset from which to copy region references
    h5_target : h5py.Dataset
        Dataset to which to copy region references to

    """
    if not isinstance(h5_source, h5py.Dataset):
        raise TypeError("'h5_source' should be a h5py.Dataset object")
    if not isinstance(h5_target, h5py.Dataset):
        raise TypeError("'h5_target' should be a h5py.Dataset object")
    for key in h5_source.attrs.keys():
        if not isinstance(h5_source.attrs[key], h5py.RegionReference):
            continue
        simple_region_ref_copy(h5_source, h5_target, key)

    Copies only region references from the source dataset to the target dataset

    Parameters
    ----------
    h5_source : h5py.Dataset
        Dataset from which to copy region references
    h5_target : h5py.Dataset
        Dataset to which to copy region references to

    
Copies only region references from the source dataset to the target dataset
Parameters

h5_source : h5py.Dataset
Dataset from which to copy region references
h5_target : h5py.Dataset
Dataset to which to copy region references to
Copies only region references from the source dataset to the target dataset Parameters h5_source : h5py . Dataset Dataset from which to copy region references h5_target : h5py . Dataset Dataset to which to copy region references to
def copy_all_region_refs(h5_source, h5_target):
    if not isinstance(h5_source, h5py.Dataset):
        raise TypeError("'h5_source' should be a h5py.Dataset object")
    if not isinstance(h5_target, h5py.Dataset):
        raise TypeError("'h5_target' should be a h5py.Dataset object")
    for key in h5_source.attrs.keys():
        if not isinstance(h5_source.attrs[key], h5py.RegionReference):
            continue
        simple_region_ref_copy(h5_source, h5_target, key)
def copy_all_region_refs ( h5_source , h5_target ) : if not isinstance ( h5_source , h5py . Dataset ) : raise TypeError ( "'h5_source' should be a h5py.Dataset object" ) if not isinstance ( h5_target , h5py . Dataset ) : raise TypeError ( "'h5_target' should be a h5py.Dataset object" ) for key in h5_source . attrs . keys ( ) : if not isinstance ( h5_source . attrs [ key ] , h5py . RegionReference ) : continue simple_region_ref_copy ( h5_source , h5_target , key )
Copies only region references from the source dataset to the target dataset
Parameters
Copies only region references from the source dataset to the target dataset Parameters
"""
    Copies only region references from the source dataset to the target dataset

    Parameters
    ----------
    h5_source : h5py.Dataset
        Dataset from which to copy region references
    h5_target : h5py.Dataset
        Dataset to which to copy region references to

    """
h5_source
h5_target