# Gen Script

Generates example synthetic observations from a PopPK/PD model.

Note that running PoPy on a Gen Script creates similar outputs to running it on a Sim Script. However, a Gen Script also generates the time point and dose data to simulate the entire data file not just the observations.

## Main Sections of a Gen Script

- METHOD_OPTIONS
- DESCRIPTION
- FILE_PATHS
- DATA_FIELDS
- LEVEL_PARAMS
- MODEL_PARAMS
- STATES
- DERIVATIVES
- PREDICTIONS
- ODE_SOLVER
- OUTPUT_SCRIPTS

## Full Structure of a Gen Script

- METHOD_OPTIONS
  - py_module
  - rand_seed
  - float_format
- DESCRIPTION
  - name
  - title
  - author
  - abstract
  - keywords
- FILE_PATHS
  - output_folder
  - temp_folder
  - log_folder
  - output_file_ext
- DATA_FIELDS
  - type_field
  - id_field
  - time_field
- LEVEL_PARAMS
  - params
  - split_field
  - split_dict
- MODEL_PARAMS
- STATES
- DERIVATIVES
- PREDICTIONS
- ODE_SOLVER
  - NO_SOLVER
  - ANALYTIC
  - SCIPY_ODEINT
    - atol
    - rtol
    - max_nsteps
    - use_sens
- OUTPUT_SCRIPTS
  - GRPH
    - output_mode
    - share_axes
  - SIM
    - output_mode
    - sim_time_step
    - share_axes
  - GENSUM
    - output_mode