API reference¶
Subpackages¶
Submodules¶
- hpvsim.analysis module
- hpvsim.base module
ParsObj
Result
BaseSim
BaseSim.update_pars()
BaseSim.set_metadata()
BaseSim.n
BaseSim.get_t()
BaseSim.result_keys()
BaseSim.result_types()
BaseSim.copy()
BaseSim.export_results()
BaseSim.export_pars()
BaseSim.to_json()
BaseSim.to_df()
BaseSim.to_excel()
BaseSim.shrink()
BaseSim.save()
BaseSim.load()
BaseSim.get_interventions()
BaseSim.get_intervention()
BaseSim.get_analyzers()
BaseSim.get_analyzer()
BasePeople
BasePeople.initialize()
BasePeople.set_pars()
BasePeople.validate()
BasePeople.lock()
BasePeople.unlock()
BasePeople.filter_inds()
BasePeople.filter()
BasePeople.unfilter()
BasePeople.addtoself()
BasePeople.set()
BasePeople.get()
BasePeople.is_female
BasePeople.is_female_alive
BasePeople.is_male
BasePeople.is_male_alive
BasePeople.f_inds
BasePeople.m_inds
BasePeople.int_age
BasePeople.round_age
BasePeople.dt_age
BasePeople.is_active
BasePeople.is_female_adult
BasePeople.is_virgin
BasePeople.alive_inds
BasePeople.alive_level0
BasePeople.alive_level0_inds
BasePeople.n_alive
BasePeople.n_alive_level0
BasePeople.infected
BasePeople.abnormal
BasePeople.latent
BasePeople.precin
BasePeople.true()
BasePeople.true_by_genotype()
BasePeople.false_by_genotype()
BasePeople.false()
BasePeople.defined()
BasePeople.undefined()
BasePeople.count()
BasePeople.count_any()
BasePeople.count_by_genotype()
BasePeople.keys()
BasePeople.person_keys()
BasePeople.state_keys()
BasePeople.imm_keys()
BasePeople.intv_keys()
BasePeople.date_keys()
BasePeople.dur_keys()
BasePeople.layer_keys()
BasePeople.indices()
BasePeople.to_df()
BasePeople.to_arr()
BasePeople.person()
BasePeople.to_list()
BasePeople.from_list()
BasePeople.to_graph()
BasePeople.save()
BasePeople.load()
BasePeople.init_contacts()
BasePeople.add_contacts()
BasePeople.make_edgelist()
BasePeople.remove_duplicates()
Person
FlexDict
Contacts
Layer
- hpvsim.calibration module
Calibration
Calibration.run_sim()
Calibration.update_dict_pars()
Calibration.update_dict_pars_from_trial()
Calibration.update_dict_pars_init_and_bounds()
Calibration.get_full_pars()
Calibration.trial_pars_to_sim_pars()
Calibration.sim_to_sample_pars()
Calibration.trial_to_sim_pars()
Calibration.run_trial()
Calibration.worker()
Calibration.run_workers()
Calibration.remove_db()
Calibration.make_study()
Calibration.calibrate()
Calibration.parse_study()
Calibration.to_json()
Calibration.plot()
- hpvsim.defaults module
- hpvsim.hiv module
- hpvsim.immunity module
- hpvsim.interventions module
Intervention
RoutineDelivery
CampaignDelivery
dynamic_pars
EventSchedule
set_intervention_attributes()
BaseVaccination
routine_vx
campaign_vx
BaseTest
BaseScreening
routine_screening
campaign_screening
BaseTriage
routine_triage
campaign_triage
BaseTreatment
treat_num
treat_delay
BaseTxVx
routine_txvx
campaign_txvx
linked_txvx
dx
tx
vx
radiation
default_dx()
default_tx()
default_vx()
- hpvsim.misc module
- hpvsim.parameters module
- hpvsim.people module
People
People.init_flows()
People.scale_flows()
People.increment_age()
People.initialize()
People.update_states_pre()
People.update_states_post()
People.set_prognoses()
People.set_severity()
People.dissolve_partnerships()
People.create_partnerships()
People.check_inds()
People.check_inds_true()
People.check_progress()
People.check_cin()
People.check_cancer()
People.check_cancer_deaths()
People.check_clearance()
People.apply_death_rates()
People.add_births()
People.check_migration()
People.make_naive()
People.infect()
People.remove_people()
People.plot()
People.story()
- hpvsim.plotting module
- hpvsim.population module
- hpvsim.run module
make_metapars()
MultiSim
MultiSim.result_keys()
MultiSim.init_sims()
MultiSim.run()
MultiSim.shrink()
MultiSim.reset()
MultiSim.reduce()
MultiSim.mean()
MultiSim.median()
MultiSim.combine()
MultiSim.compare()
MultiSim.plot()
MultiSim.plot_result()
MultiSim.plot_compare()
MultiSim.save()
MultiSim.load()
MultiSim.merge()
MultiSim.split()
MultiSim.disp()
MultiSim.summarize()
MultiSim.brief()
MultiSim.to_json()
MultiSim.to_excel()
Scenarios
Sweep
single_run()
multi_run()
parallel()
- hpvsim.settings module
- hpvsim.sim module
Sim
Sim.load_data()
Sim.initialize()
Sim.layer_keys()
Sim.reset_layer_pars()
Sim.validate_layer_pars()
Sim.validate_dt()
Sim.validate_pars()
Sim.init_time_vecs()
Sim.validate_init_conditions()
Sim.init_genotypes()
Sim.init_results()
Sim.init_interventions()
Sim.init_people()
Sim.init_analyzers()
Sim.init_immunity()
Sim.init_hiv()
Sim.finalize_analyzers()
Sim.init_states()
Sim.step()
Sim.run()
Sim.finalize()
Sim.compute_results()
Sim.compute_states()
Sim.compute_age_mean()
Sim.compute_summary()
Sim.summarize()
Sim.plot()
Sim.compute_fit()
AlreadyRunError
diff_sims()
- hpvsim.utils module
sample()
get_pdf()
set_seed()
n_binomial()
binomial_filter()
binomial_arr()
n_multinomial()
poisson()
n_poisson()
n_neg_binomial()
choose()
choose_r()
choose_w()
participation_filter()
true()
false()
defined()
undefined()
itrue()
ifalse()
idefined()
iundefined()
itruei()
ifalsei()
idefinedi()
iundefinedi()
dtround()
find_cutoff()
- hpvsim.version module