Education#
- class Education(pars=None, location=None, **kwargs)[source]#
Bases:
Connector
Attributes
auto_state_list
List of "automatic" states with boolean type (ss.BoolState) that were added via define_states()
dt
Get the current module timestep
now
Shortcut to self.t.now()
state_dict
Return a flat dictionary (objdict) of all states
state_list
Return a flat list of all states (ss.Arr objects)
ti
Get the current module timestep
timevec
Shortcut to self.t.timevec
Methods
- set_objective_dists(objective_data)[source]#
Return an educational objective distribution based on provided data. The data should be provided in the form of a pandas DataFrame with
“edu” and “percent” as columns.
- Returns:
An
ss.Dist
instance that returns an educational objective for newly created agents
- start_education()[source]#
Begin education. TODO, this assumes everyone starts, but in reality, some may not start school or start later
- interrupt_education()[source]#
Interrupt education due to pregnancy. This method hinders education progression if a woman is pregnant and towards the end of the first trimester