Matscipy root

matscipy.has_parameter(name)

Test if a parameter has been provided in params.py.

Parameters:

name (str) – Name of the parameter.

Returns:

value – Returns True if parameter exists.

Return type:

bool

matscipy.parameter(name, default=None, logger=<matscipy.logger.Logger object>)

Read parameter from params.py control file.

Parameters:
  • name (str) – Name of the parameter.

  • default (optional) – Default value. Will be returned if parameter is not present.

Returns:

Value of the parameter.

Return type:

value