IHEWAdataanalysis package

Submodules

IHEWAdataanalysis.analysis module

Download

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

class IHEWAdataanalysis.analysis.Analysis(workspace='', config='', **kwargs)[source]

Bases: IHEWAdataanalysis.analysis.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]
class IHEWAdataanalysis.analysis.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.

IHEWAdataanalysis.exception module

Exception

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

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

Bases: Exception

IHEClassInitError Class

Parameters
  • mod (str) – Module name.

  • msg (bool) – Extra message.

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

Bases: Exception

IHEFileError Class

Parameters
  • file (str) – File name.

  • msg (bool) – Extra message.

exception IHEWAdataanalysis.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 IHEWAdataanalysis.exception.IHEStringError(vname, msg=None)[source]

Bases: Exception

IHEStringError Class

Parameters
  • vname (str) – Variable name.

  • msg (bool) – Extra message.

exception IHEWAdataanalysis.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.

Module contents

IHEWAdataanalysis: IHE Water Accounting Data Analysis Tools

class IHEWAdataanalysis.Analysis(workspace='', config='', **kwargs)[source]

Bases: IHEWAdataanalysis.analysis.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]