processing_components/calibration/pointing.py
def create_pointingtable_from_rows(pt: PointingTable, rows: numpy.ndarray, makecopy=True) -> PointingTable:
    """ Create a PointingTable from selected rows

    :param pt: PointingTable
    :param rows: Boolean array of row selection
    :param makecopy: Make a deep copy (True)
    :return: PointingTable
    """
    
    if rows is None or numpy.sum(rows) == 0:
        return None
    
    assert len(rows) == pt.ntimes, "Lenpth of rows does not agree with lenpth of PointingTable"
    
    assert isinstance(pt, PointingTable), pt
    
    if makecopy:
        newpt = copy_pointingtable(pt)
        newpt.data = copy.deepcopy(pt.data[rows])
        return newpt
    else:
        pt.data = copy.deepcopy(pt.data[rows])
        
        return pt
 Create a PointingTable from selected rows

    :param pt: PointingTable
    :param rows: Boolean array of row selection
    :param makecopy: Make a deep copy (True)
    :return: PointingTable
    
Create a PointingTable from selected rows
Create a PointingTable from selected rows
def create_pointingtable_from_rows(pt: PointingTable, rows: numpy.ndarray, makecopy=True) -> PointingTable:
    if rows is None or numpy.sum(rows) == 0:
        return None
    assert len(rows) == pt.ntimes, "Lenpth of rows does not agree with lenpth of PointingTable"
    assert isinstance(pt, PointingTable), pt
    if makecopy:
        newpt = copy_pointingtable(pt)
        newpt.data = copy.deepcopy(pt.data[rows])
        return newpt
    else:
        pt.data = copy.deepcopy(pt.data[rows])
        return pt
def create_pointingtable_from_rows ( pt : PointingTable , rows : numpy . ndarray , makecopy = True ) -> PointingTable : if rows is None or numpy . sum ( rows ) == 0 : return None assert len ( rows ) == pt . ntimes , "Lenpth of rows does not agree with lenpth of PointingTable" assert isinstance ( pt , PointingTable ) , pt if makecopy : newpt = copy_pointingtable ( pt ) newpt . data = copy . deepcopy ( pt . data [ rows ] ) return newpt else : pt . data = copy . deepcopy ( pt . data [ rows ] ) return pt
Create a PointingTable from selected rows
Create a PointingTable from selected rows
""" Create a PointingTable from selected rows

    :param pt: PointingTable
    :param rows: Boolean array of row selection
    :param makecopy: Make a deep copy (True)
    :return: PointingTable
    """
None
pt
PointingTable
None
rows
numpy.ndarray
Boolean array of row selection
Boolean array of row selection
makecopy
Make a deep copy (True)
Make a deep copy ( True )