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')
def load(): filename = 'birth_seasonality.h5' return plot_common.get_extinction_time(filename)
def load(): filename = 'population_size.h5' return plot_common.get_extinction_time(filename)
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)
def load(): filename = 'initial_conditions.h5' infected = plot_common.get_infected(filename) extinction_time = plot_common.get_extinction_time(filename) return (infected, extinction_time)