history

File Purpose: logging, recording info about state of code, etc.

For reproducibility in the future.

E.g., with results, also save git hash for current version of the code.

Functions

_PlasmaCalcs_version()

returns the current version of PlasmaCalcs, if available.

code_snapshot_info(*[, default, skip_missing])

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

datetime_astimezone(datetime_[, tz])

convert a datetime.datetime to the requested timezone.

datetime_now(*[, sep, tz, timespec])

current datetime as string according to user's computer.

datetime_str([datetime_, sep, tz, timespec])

datetime as string, including timezone.

datetimestamp(filepath[, tz, as_str, sep])

return (best-effort guess of) datetime.datetime when this file was created or first written.

git_hash([module_or_path, default])

returns the git commit hash for current git HEAD at the provided module or path.

git_hash_PlasmaCalcs()

returns the git commit hash for current git HEAD in PlasmaCalcs

git_hash_here(globals_)

returns git commit hash for the __file__ in the namespace where this function is called.

git_hash_local(*[, default])

returns the git commit hash for current git HEAD within the local directory