mangadap.util.exception_tools module

Provides a set of tools that the MaNGA DAP uses to handle/report raised exceptions.

Revision history

2015: Original implementation by K. Westfall (KBW)
20 May 2015: (KBW) Documentation and Sphinx tests
03 Feb 2016: (KBW) Added check_environment_variable()

License

Copyright © 2019, SDSS-IV/MaNGA Pipeline Group


mangadap.util.exception_tools.check_environment_variable(name)[source]

Check for the existence of an environment variable.

Parameters

name (str) – Name of a required environmental variable

Raises

EnvironmentError – Raised if name is not defined.

mangadap.util.exception_tools.print_frame(prefix)[source]

Print the frame stack.

Parameters

prefix (str) – Prefix (typically the exception type) for the printed statement