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
defaultif info unavailable due to crash):‘pc__version__’: PlasmaCalcs version‘pc__commit_hash’: git hash for PlasmaCalcs‘datetime’: current datetime, in isoformatdefault: any object, default Nonedefault value to use if info is unavailable due to crash.skip_missing: boolwhether to skip missing info (i.e. any values which are None, probably due to crash).