def fit_one_case_data(args): Params = Fitter() region, data = args r = fit_population(region) if r is None: return (region, Params.fit(data)) param = {"tMin": r['tMin'], "r0": np.exp(r['params'].rates.logR0), "initialCases": r["initialCases"]} return (region, param)
def fit_one_case_data(args): Params = Fitter() region, data = args r = fit_population(region) if r is None: return (region, Params.fit(data)) else: if 'New York' in region: print(f"Region {region}: {r['params']}", file=sys.stderr) param = {"tMin": r['tMin'], "r0": np.exp(r['params'].rates.logR0), "initialCases": r["initialCases"]} return (region, param)