processing_library/image/operations.py
def copy_image(im: Image):
    """ Create an image from an array
    
    Performs deepcopy of data_models, breaking reference semantics

    :param im:
    :return: Image
    
    """
    
    if im is None:
        return im
    
    assert isinstance(im, Image), im
    fim = Image()
    fim.polarisation_frame = im.polarisation_frame
    fim.data = copy.deepcopy(im.data)
    if im.wcs is None:
        fim.wcs = None
    else:
        fim.wcs = copy.deepcopy(im.wcs)
    if image_sizeof(fim) >= 1.0:
        log.debug("copy_image: copied %s image of shape %s, size %.3f (GB)" %
                  (fim.data.dtype, str(fim.shape), image_sizeof(fim)))
    assert type(fim) == Image
    return fim
 Create an image from an array
    
    Performs deepcopy of data_models, breaking reference semantics

    :param im:
    :return: Image
    
    
Create an image from an array
Performs deepcopy of data_models, breaking reference semantics
Create an image from an array Performs deepcopy of data_models breaking reference semantics
def copy_image(im: Image):
    if im is None:
        return im
    assert isinstance(im, Image), im
    fim = Image()
    fim.polarisation_frame = im.polarisation_frame
    fim.data = copy.deepcopy(im.data)
    if im.wcs is None:
        fim.wcs = None
    else:
        fim.wcs = copy.deepcopy(im.wcs)
    if image_sizeof(fim) >= 1.0:
        log.debug("copy_image: copied %s image of shape %s, size %.3f (GB)" %
                  (fim.data.dtype, str(fim.shape), image_sizeof(fim)))
    assert type(fim) == Image
    return fim
def copy_image ( im : Image ) : if im is None : return im assert isinstance ( im , Image ) , im fim = Image ( ) fim . polarisation_frame = im . polarisation_frame fim . data = copy . deepcopy ( im . data ) if im . wcs is None : fim . wcs = None else : fim . wcs = copy . deepcopy ( im . wcs ) if image_sizeof ( fim ) >= 1.0 : log . debug ( "copy_image: copied %s image of shape %s, size %.3f (GB)" % ( fim . data . dtype , str ( fim . shape ) , image_sizeof ( fim ) ) ) assert type ( fim ) == Image return fim
Create an image from an array
Performs deepcopy of data_models, breaking reference semantics
Create an image from an array Performs deepcopy of data_models breaking reference semantics
""" Create an image from an array
    
    Performs deepcopy of data_models, breaking reference semantics

    :param im:
    :return: Image
    
    """
None
im
Image
None