fcp2021 / Bristol_Students_Simulation.py
Bristol_Students_Simulation.py
Raw
from simulation import Simulation  


def main():
    '''
    The below simulator is used to model Bristol University students 
    creating a younger age array to watch the age statistics reduce rates of symptom, hospital and death
    
    Results will be saved to csv files in the same folder as this code
    Returns
    -------
    None.

    '''
    BristolStudents = Simulation(130, 90, 10, 1, 10, 1.2, 2, 90, 0.3, 1, 0.3, 1)
    days = 0
    BristolStudents.ages = BristolStudents.age_array_create("U", 18, 30)
    BristolStudents.state = BristolStudents.init_array()
    BristolStudents.stats_init()
    while days < BristolStudents.days:
        BristolStudents.day_run()
        days += 1
if __name__ == '__main__':
    main()