def DEFAULTS(): return Parameters( region=Regions( delaware=564696, chester=519293, montgomery=826075, bucks=628341, philly=1581000, ), current_date=datetime(year=2020, month=3, day=28), current_hospitalized=14, date_first_hospitalized=datetime(year=2020, month=3, day=7), doubling_time=4.0, n_days=60, market_share=0.15, relative_contact_rate=0.3, hospitalized=Disposition(0.025, 7), icu=Disposition(0.0075, 9), ventilated=Disposition(0.005, 10), )
def defaults(): return Parameters( region=Regions( delaware=564696, chester=519293, montgomery=826075, bucks=628341, philly=1581000, ), current_date=datetime(year=2020, month=3, day=28), current_hospitalized=14, date_first_hospitalized=datetime(year=2020, month=3, day=7), doubling_time=4.0, hospitalized=Disposition.create(rate=0.025, days=7), icu=Disposition.create(rate=0.0075, days=9), infectious_days=14, n_days=60, market_share=0.15, mitigation_date=datetime(year=2020, month=3, day=28), recovered=0, relative_contact_rate=0.3, ventilated=Disposition.create(rate=0.005, days=10), )
) from src.penn_chime.parameters import ( Parameters, RateDays, Regions, ) from src.penn_chime.presentation import display_header EPSILON = 1.e-7 # The defaults in settings will change and break the tests DEFAULTS = Parameters( region=Regions( delaware=564696, chester=519293, montgomery=826075, bucks=628341, philly=1581000, ), current_date=datetime(year=2020, month=3, day=28), current_hospitalized=14, date_first_hospitalized=datetime(year=2020, month=3, day=7), doubling_time=4.0, n_days=60, market_share=0.15, relative_contact_rate=0.3, hospitalized=RateDays(0.025, 7), icu=RateDays(0.0075, 9), ventilated=RateDays(0.005, 10), )