rubem.core.Model

class Model(modelConfig)[source]

Bases: object

Distributed Hydrological Model for transforming precipitation into surface and subsurface runoff

Initialise a new Model instance

Parameters

modelConfig (ConfigParser) – Configuration parser object

Raises
  • TypeError – The class constructor did not take an argument of the expected type

  • SystemExit – The class constructor was unable to validate the given settings

Methods

load

Load an existing model

run

Run the model

classmethod load(data)[source]

Load an existing model

Parameters

data (file-like, str, dict) – A file-like object to read INI data from, path to a filename to read, or a parsed dict

Raises

Exception – Unsupported model configuration format

run()[source]

Run the model

Return type

None