base#

Base classes for HPVsim. 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

ParsObj

A class based around performing operations on a self.pars dict.

Result

Stores a single result -- by default, acts like an array.

BaseSim

The BaseSim class stores various methods useful for the Sim that are not directly related to simulating the epidemic.

BasePeople

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.

Person

Class for a single person.

FlexDict

A dict that allows more flexible element access: in addition to obj['a'], also allow obj[0].

Contacts

A simple (for now) class for storing different contact layers.

Layer

A small class holding a single layer of contact edges (connections) between people.