Skip to content
Snippets Groups Projects

mhpfiles

Getting Started With EPICpy

  1. The Macs in front of you

    • Already have prerequisites
      • curl, git, and Python 3.10
    • Grab devices
    # download mhpfiles from tls repo
    git clone https://git.ucsc.edu/nogard/mhpfiles
    # change directory
    cd mhpfiles
    # list files in directory
    ls  # dir on Windows
    • Install tools
    # Mac and Linux
    ./tool_install.sh
    # Windows
    tool_install.bat
    • Upgrade Tools
    # Mac and Linux
    ./tool_upgrade.sh
    # Windows
    tool_upgrade.bat
    • Run EPICpy
    EPICpy
    • Run EPICpy tests:
      • In menu, select Help🡆Tests (you may have to run twice)
  2. Planning to use Macs only?

    • Copy the mhpfiles folder (that may contain your modeling work) to a USB drive using your system's file explorer (i.e., just drag it to your USB drive).
  3. Your own machines

  4. Running models

    • NOTE: At the moment, there is a bug on some (all?) machines where the first thing you must do before starting any modeling is to first run the test model.
    • To load a model, you'll need to do:
      • File🡆LoadDevice and then locate your device file.
      • File🡆CompileRules and then locate your rules file.
    • To run a model, you'll need to do:
      • Run🡆Run
    • Try to run the Detection device with the VM rules 3 times in a row. See graph?