Assume CLI#

Submodules#

Command Line Interface#

There is a command line interface available to assume which makes it easy to run simulations from the CLI. It takes an input folder relative from the place it was run from.

The following command line parameters are available in the CLI:

Command Line Interface for ASSUME simulations

usage: assume [-h] [-s SCENARIO] [-c CASE_STUDY] [-csv CSV_EXPORT_PATH]
              [-db DB_URI] [-i INPUT_PATH] [-l LOGLEVEL] [-p]

Named Arguments#

-s, --scenario

name of the scenario file which should be used

Default: 'example_01a'

-c, --case-study

name of the case in that scenario which should be simulated

Default: ''

-csv, --csv-export-path

optional path to the csv export

Default: ''

-db, --db-uri

uri string for a database

Default: ''

-i, --input-path

path to the input folder

Default: 'examples/inputs'

-l, --loglevel

Possible choices: WARN, DEBUG, ERROR, NOTSET, FATAL, WARNING, CRITICAL, INFO

logging level used for file log

Default: 'INFO'

-p, --parallel

run simulation with multiple processes

Default: False

Market timing#

Before running a simulation, the timing of the markets of a study case can be shown and checked with assume-market. It renders when each market opens, is cleared and delivers, and prints the timing issues which are also checked when a simulation starts. It exits with code 1 if the timing contains errors.

assume-market examples/inputs/example_01a/config.yaml --case-study dam

Show and check the timing of the markets of an ASSUME config before running a simulation

usage: assume-market [-h] [-c CASE_STUDY] [--start START] [--end END]
                     [--ascii] [--mermaid]
                     config

Positional Arguments#

config

path to the config.yaml or to the scenario folder containing it

Named Arguments#

-c, --case-study

name of the case in the config which should be shown, defaults to the first one

Default: ''

--start

start of the shown interval, defaults to the first market opening

--end

end of the shown interval, defaults to one full cycle of all markets

--ascii

use ASCII instead of unicode box drawing characters

Default: False

--mermaid

print the mermaid gantt diagram instead of rendering it in the terminal

Default: False