emodpy-typhoid installation

Follow the steps below to install emodpy-typhoid.

Note

Currently, an IDM VPN connection is required to run the example.

  1. Open a command prompt and create a virtual environment in any directory you choose. The command below names the environment “v-emodpy-typhoid”, but you may use any desired name:

    python -m venv v-emodpy-typhoid
    
  2. Activate the virtual environment:

    • For Windows, enter the following:

      v-emodpy-typhoid\Scripts\activate
      
    • For Linux, enter the following:

      source v-emodpy-typhoid/bin/activate
      
  3. Install emodpy-typhoid packages:

    pip install emodpy_typhoid
    

    If you are on Linux, also run:

    pip install keyrings.alt
    
  4. Open a command prompt and clone the emodpy-typhoid GitHub repository to a local directory using the following command:

    git clone https://github.com/InstituteforDiseaseModeling/emodpy-typhoid.git
    
  5. Verify installation by running the included Python example, example.py, located in /examples/start_here:

    python example.py
    

    Upon completion you can view the results in COMPS.

  6. When you are finished, deactivate the virtual environment by entering the following at a command prompt:

    deactivate