def remove_blocks(data, config_map):
    '\n    Sets to zero given alien blocks in the data array.\n    \n    Parameters\n    ----------\n    data : ndarray\n        an array with experiment data\n    config : Object\n        configuration object providing access to configuration parameters\n\n    Returns\n    -------\n    data : ndarray\n        data array with zeroed out aliens\n    '
    try:
        aliens = config_map.aliens
        for alien in aliens:
            data[alien[0]:alien[3], alien[1]:alien[4], alien[2]:alien[5]] = 0
    except AttributeError:
        print('aliens parameter not configured')
    except Exception as e:
        print('did not remove aliens, error in aliens removal ', str(e))
    return data
Sets to zero given alien blocks in the data array.

Parameters
----------
data : ndarray
    an array with experiment data
config : Object
    configuration object providing access to configuration parameters

Returns
-------
data : ndarray
    data array with zeroed out aliens
def remove_blocks(data, config_map):
    '\n    Sets to zero given alien blocks in the data array.\n    \n    Parameters\n    ----------\n    data : ndarray\n        an array with experiment data\n    config : Object\n        configuration object providing access to configuration parameters\n\n    Returns\n    -------\n    data : ndarray\n        data array with zeroed out aliens\n    '
    try:
        aliens = config_map.aliens
        for alien in aliens:
            data[alien[0]:alien[3], alien[1]:alien[4], alien[2]:alien[5]] = 0
    except AttributeError:
        print('aliens parameter not configured')
    except Exception as e:
        print('did not remove aliens, error in aliens removal ', str(e))
    return data