Wrappers

Decorators and wrappers used throughout GloMPO.

catch_user_interrupt(func)[source]

Catches a KeyboardInterrupt signal and exits gracefully.

decorate_all_methods(decorator)[source]

Applies decorator to every method in a class.

needs_optional_package(package)[source]

Checks package requirement before running a function. Will warn and not allow a function to execute if the package it requires is not available to the system. Applied to functions which provide optional GloMPO functionality.

process_print_redirect(opt_id, working_dir, func)[source]

Redirects a process’ output to a text file in a designated directory.