monitor#

Introduction#

ogsmonitor is a Python utility that uses BokehJS to display the STDOUT log of OpenGeoSys (OGS). Internally it uses the logparser for analysing the output. It can be used as a standalone command line utility (see below) or within a Jupyer notebook.

Requirements#

  • The monitor requires BokehJS to be installed on the system

Command line usage#

ogsmonitor is a command line interface of the monitor. For example ogsmonitor HM_excavation.log -c monitor.json. The json file is not required, however it can be used to finetune the displayed output:

Post-hoc analysis#

Then inspect a completed log use:

ogsmonitor my.log
{
    "liveplot": true,
    "log_data": [["step_start_time", "step_size"], ["iteration_number", "dx_x_0"]],
    "time_y_axis_type": "log",
    "data_collect_time": 0.3,
    "update_plot_time": 500,
    "time_window_length": 0,
    "iteration_window_length": 0
}

Monitor OpenGeoSys simulations via their log output.

usage: ogsmonitor [-h] [-c config-file] [-l] [log-file]

Positional Arguments#

log-file

(Required) OGS log file. Omit when piping: ogs … | ogsmonitor

Named Arguments#

-c, --config

Optional JSON configuration file to fine-tune the displayed output.

-l, --log

Enable verbose logging.

Default: False

Exit codes: 0 success, 1 bokeh failed, 2 invalid input.