molyso.debugging package¶
Debugging Module. Currently only contains DebugPlot, which is imported here for ease of use.
molyso.debugging.debugplot module¶
documentation
-
class
molyso.debugging.debugplot.
DebugPlot
(*args, **kwargs)[source]¶ Bases:
object
The DebugPlot class serves as an switchable abstraction layer to add plotting debug output facilities.
-
active
= True¶
-
context
= ''¶
-
default_config
= {'figure.dpi': 150, 'figure.figsize': (12, 8), 'image.cmap': 'gray'}¶
-
diverted_outputs
= {}¶
-
exit_handler_registered
= False¶
-
exit_handlers
= []¶
-
exp_plot_debugging
= False¶
-
file_prefix
= 'debug'¶
-
file_suffix
= '.pdf'¶
-
files_to_merge
= []¶
-
force_active
= False¶
-
individual_and_merge
= False¶
-
individual_file_prefix
= 'debug'¶
-
individual_files
= False¶
-
classmethod
pdfopener
(filename)[source]¶ Opens a new PdfPages output, ensuring it will be closed at exit.
Parameters: filename – filename Returns:
-
post_figure
= 'close'¶
-
pp
= None¶
-
throw_on_anything
= True¶
-
-
exception
molyso.debugging.debugplot.
DebugPlotInterruptException
[source]¶ Bases:
Exception
Only for internal usage. Used to interrupt plot drawing early if it is disabled.
-
class
molyso.debugging.debugplot.
DebugPlotInterruptThrower
[source]¶ Bases:
object
Dummy object which raises an exception on every call. To be used when debug mode is deactivated.