kerrpy.utils package

Submodules

kerrpy.utils.attr_dict module

class kerrpy.utils.attr_dict.AttrDict(*args, **kwargs)[source]

Bases: dict

__dict__ = mappingproxy({'__module__': 'kerrpy.utils.attr_dict', '__dict__': <attribute '__dict__' of 'AttrDict' objects>, '__doc__': None, '__init__': <function AttrDict.__init__>, '__weakref__': <attribute '__weakref__' of 'AttrDict' objects>})
__init__(*args, **kwargs)[source]
__module__ = 'kerrpy.utils.attr_dict'
__weakref__

list of weak references to the object (if defined)

kerrpy.utils.draw module

kerrpy.utils.draw.drawAxes(ax, d=150)[source]
kerrpy.utils.draw.drawBlackHole(ax)[source]
kerrpy.utils.draw.drawCameras(ax)[source]
kerrpy.utils.draw.drawErgoSphere(ax)[source]
kerrpy.utils.draw.drawGeodesic(ax, coordinates, colour)[source]
kerrpy.utils.draw.drawScene(ax)[source]
kerrpy.utils.draw.spher2cart(points)[source]

kerrpy.utils.logging_utils module

class kerrpy.utils.logging_utils.LoggingClass[source]

Bases: type

This metaclass uses powerfull arcane forces to make every method of the class that inherits from this to log the execution and termination of itself.

__module__ = 'kerrpy.utils.logging_utils'
static __new__(meta, name, bases, attrs)[source]

kerrpy.utils.progress_lib module

kerrpy.utils.progress_lib.getTerminalSize()[source]
kerrpy.utils.progress_lib.mean(vector)[source]
kerrpy.utils.progress_lib.progress_bar_init(max)[source]
kerrpy.utils.progress_lib.update_progress(progress, time)[source]

Module contents