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)
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)
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?