IHEWAreport package

Submodules

IHEWAreport.exception module

Exception

https://julien.danjou.info/python-exceptions-guide/

exception IHEWAreport.exception.IHEClassInitError(mod, msg=None)[source]

Bases: Exception

IHEClassInitError Class

Parameters
  • mod (str) – Module name.

  • msg (bool) – Extra message.

exception IHEWAreport.exception.IHEFileError(file, msg=None)[source]

Bases: Exception

IHEFileError Class

Parameters
  • file (str) – File name.

  • msg (bool) – Extra message.

exception IHEWAreport.exception.IHEKeyError(key, val, msg=None)[source]

Bases: Exception

IHEKeyError Class

Parameters
  • key (str) – Key name.

  • val (list) – Key name list.

  • msg (bool) – Extra message.

exception IHEWAreport.exception.IHEStringError(vname, msg=None)[source]

Bases: Exception

IHEStringError Class

Parameters
  • vname (str) – Variable name.

  • msg (bool) – Extra message.

exception IHEWAreport.exception.IHETypeError(vname, rtype, vdata, msg=None)[source]

Bases: Exception

IHETypeError Class

Parameters
  • vname (str) – Variable name.

  • rtype (str) – Required type.

  • vdata (float) – Variable value.

  • msg (bool) – Extra message.

IHEWAreport.report module

Download

Before use this module, create accounts.yml file. And edit account information in the file.

class IHEWAreport.report.Base[source]

Bases: object

This Base class

Load base.yml file.

Parameters
  • product (str) – Product name of data products.

  • is_print (bool) – Is to print status message.

class IHEWAreport.report.Report(workspace='', config='', isclean=True, **kwargs)[source]

Bases: IHEWAreport.report.Base

Download class

After initialise the class, data downloading will automatically start.

Parameters
  • workspace (str) – Directory to config.yml.

  • config (str) – Configuration yaml file name.

  • kwargs (dict) – Other arguments.

static get_config(self)[source]

Module contents

IHEWAreport: IHE Water Accounting Report Tools

class IHEWAreport.Report(workspace='', config='', isclean=True, **kwargs)[source]

Bases: IHEWAreport.report.Base

Download class

After initialise the class, data downloading will automatically start.

Parameters
  • workspace (str) – Directory to config.yml.

  • config (str) – Configuration yaml file name.

  • kwargs (dict) – Other arguments.

static get_config(self)[source]