本文整理汇总了Python中Population.Population.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Population.__init__方法的具体用法?Python Population.__init__怎么用?Python Population.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Population.Population
的用法示例。
在下文中一共展示了Population.__init__方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from Population import Population [as 别名]
# 或者: from Population.Population import __init__ [as 别名]
def __init__(self, label='Confirmed', **kwargs):
'''Initialize a population of Known planets, from the NASA Exoplanet archive.'''
# set up the population
Population.__init__(self, label=label, **kwargs)
correct(self)
self.saveStandard()
# defing some plotting parameters
self.color = 'black'
self.zorder = -1
示例2: __init__
# 需要导入模块: from Population import Population [as 别名]
# 或者: from Population.Population import __init__ [as 别名]
def __init__(self, label='KOI', **kwargs):
'''Initialize a population of KOI's, from Exoplanet archive.'''
# set up the population
Population.__init__(self, label=label, **kwargs)
correct(self)
self.saveStandard()
# defing some plotting parameters
self.color = 'gray'
self.zorder = -1
示例3: __init__
# 需要导入模块: from Population import Population [as 别名]
# 或者: from Population.Population import __init__ [as 别名]
def __init__(self, **kwargs):
'''Initialize a population of simulated TESS planets.'''
Population.__init__(self, label='Predicted TESS', **kwargs)
self.color = 'orange'
self.zorder = 1
示例4: __init__
# 需要导入模块: from Population import Population [as 别名]
# 或者: from Population.Population import __init__ [as 别名]
def __init__(self, listofdictionaries=None, **kwargs):
'''Initialize a population of KOIs, from the downloaded CSV.'''
Population.__init__(self, label='New', listofdictionaries=listofdictionaries, **kwargs)
self.color='orangered'
self.zorder = 10
示例5: __init__
# 需要导入模块: from Population import Population [as 别名]
# 或者: from Population.Population import __init__ [as 别名]
def __init__(self, data, *args, **kwargs):
Population.__init__(self, *args, **kwargs)
self.data = data
self.stats = dict()