base#
Base classes for Covasim. These classes handle a lot of the boilerplate of the People and Sim classes (e.g. loading, saving, key lookups, etc.), so those classes can be focused on the disease-specific functionality.
Classes
A class based around performing operations on a self.pars dict. |
|
Stores a single result -- by default, acts like an array. |
|
The BaseSim class stores various methods useful for the Sim that are not directly related to simulating the epidemic. |
|
A class to handle all the boilerplate for people -- note that as with the BaseSim vs Sim classes, everything interesting happens in the People class, whereas this class exists to handle the less interesting implementation details. |
|
Class for a single person. |
|
A dict that allows more flexible element access: in addition to obj['a'], also allow obj[0]. |
|
A simple (for now) class for storing different contact layers. |
|
A small class holding a single layer of contact edges (connections) between people. |