Publish a new country model
To publish a new country model, you can follow the steps below. This example uses the ZambiaWithLongLastingPrep country model in
Modify Campaign 3: Modify Country Model tutorial.
-
Move
zambia_withlong_lasting_prep.pyto/emodpy-hiv/emodpy_hiv/countries/zambia_withlong_lasting_prep/zambia_withlong_lasting_prep.py -
Add a
__init__.pyfile underemodpy_hiv/countries/zambia_withlong_lasting_prepfolder with: -
Add this line to
__init__.pyfile underemodpy_hiv/countriesfolder: -
Go to
emodpy_workflow, reinstallemodpy-hivwith the new change, verify you can use the new countryZambiaWithLongLastingPrepmodel by running:You should not need to edit thecampaign.py,config.pyordemographics.pyfile in the frame anymore and no more warning message about country model not found when creating a new frame withZambiaWithLongLastingPrepcountry model.