loadHeContextFromFile#

load_he_context_from_file(file_name: str) pyhelayers.HeContext#

Loads a context object from the given file. Context type is dynamically determined by content of file.

Parameters:

file_name (string) – File to load from.

Raises:

RuntimeError – If the given file does not contain an HeContext object, or if the object was saved with a mismatching HELayers version.