コード例 #1
0
ファイル: ObsClusterCoor.py プロジェクト: gizela/gizela
    def __init__(self, covmat=None, textTable=None, 
                 duplicity=DUPLICATE_ID.error, sort=False):
        
        if textTable == None:
            textTable = coor_table()
        
        super(ObsClusterCoor, self).__init__()


        self._obsList = PointListCovMat(covmat=covmat, textTable=textTable)
コード例 #2
0
ファイル: PointCart.py プロジェクト: gizela/gizela
    def __init__(self, id, x=None, y=None, z=None, textTable=None):
        """id, coordinates x, y, z
        and format of text table output
        """
        
        self.x=x; self.y=y; self.z=z

        if textTable == None:
            textTable = coor_table()        
        super(PointCart, self).__init__(id, textTable)
コード例 #3
0
ファイル: PointList.py プロジェクト: gizela/gizela
    def __init__(self, textTable=None, duplicateId=DUPLICATE_ID.error, sort=False):
        '''
        duplicateId ... what to do with duplicit id of point
        textTable ... format of table for text output
        sort   ... sort output by id?
        '''

        self.index     = {}        # dictionary id: list index
        self.list      = []         # list of points
        self.duplicateId  = duplicateId
        if textTable == None:
            self.textTable = coor_table()
        else:
            self.textTable  = textTable    # TextTable instance
        self.sortOutput = sort         # sort output?