Example #1
0
def load():
    filename = 'samples.h5'
    extinction_time = plot_common.get_extinction_time(filename)
    by = ['model', 'SAT']
    grouper = extinction_time.groupby(by)
    samples = [
        herd.samples.load(model=model, SAT=SAT)
        for (model, SAT) in grouper.groups.keys()
    ]
    samples = pandas.concat(samples, keys=grouper.groups.keys(), names=by)
    return pandas.concat([samples, extinction_time], axis='columns')
Example #2
0
def load():
    filename = 'birth_seasonality.h5'
    return plot_common.get_extinction_time(filename)
Example #3
0
def load():
    filename = 'population_size.h5'
    return plot_common.get_extinction_time(filename)
Example #4
0
def load():
    path = os.path.dirname(__file__)
    filename = os.path.join(path, 'run.h5')
    infected = plot_common.get_infected(filename)
    extinction_time = plot_common.get_extinction_time(filename)
    return (infected, extinction_time)
Example #5
0
def load():
    filename = 'initial_conditions.h5'
    infected = plot_common.get_infected(filename)
    extinction_time = plot_common.get_extinction_time(filename)
    return (infected, extinction_time)