code_snapshot_info

PlasmaCalcs.tools.history.code_snapshot_info(*, default=None, skip_missing=False)

returns dict including info about right now, and the version of the code being used.

Includes as many of the following as possible (uses default if info unavailable due to crash):

‘pc__version__’: PlasmaCalcs version
‘pc__commit_hash’: git hash for PlasmaCalcs
‘datetime’: current datetime, in isoformat
default: any object, default None
default value to use if info is unavailable due to crash.
skip_missing: bool
whether to skip missing info (i.e. any values which are None, probably due to crash).