june.infection.trajectory_maker.TrajectoryMakers¶
-
class
june.infection.trajectory_maker.
TrajectoryMakers
(trajectories: List[june.infection.trajectory_maker.TrajectoryMaker]) The various trajectories should depend on external data, and may depend on age & gender of the patient. This would lead to a table of tons of trajectories, with lots of mean values/deviations and an instruction on how to vary them. For this first simple implementation I will choose everything to be fixed (constant)
The trajectories will count “backwards” with zero time being the moment of infection.
Trajectories and their stages should be parsed from configuration. I’ve removed params for now as they weren’t being used but it will be trivial to reintroduce them when we are ready for configurable trajectories.
-
__init__
(trajectories: List[june.infection.trajectory_maker.TrajectoryMaker]) Trajectories and their stages should be parsed from configuration. I’ve removed params for now as they weren’t being used but it will be trivial to reintroduce them when we are ready for configurable trajectories.
-
classmethod
from_file
(config_path: str = PosixPath('/home/sadie/JUNE/configs/defaults/symptoms/trajectories.yaml')) → june.infection.trajectory_maker.TrajectoryMakers Currently this doesn’t do what it says it does.
By setting an instance on the class we can make the trajectory maker something like a singleton. However, if it were being loaded from configurations we’d need to be careful as this could give unexpected effects.
-
classmethod
from_list
(trajectory_dicts)
-