Esempio n. 1
0
def init_models(configfile,datadir=None):
    '''
    the work horse - here all models are instantiated and returned as list
    '''
    modelfile = yaml_load(configfile['models'])
    models = [CRModel(modelfile[m],name=m,datadir=datadir) for m in modelfile]
    return models
Esempio n. 2
0
 def read_yaml(cls,filename):
     """ Read an SED object from a yaml file """
     sed = tools.yaml_load(filename)
     return SED(sed)