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
Exemple #2
0
 def read_yaml(cls,filename):
     """ Read an SED object from a yaml file """
     sed = tools.yaml_load(filename)
     return SED(sed)