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.
-
std::shared_ptr<HeContext> helayers::loadHeContextFromFile(const std::string &fileName)#
Loads a context object from the given file.
Context type is dynamically determined by content of file.
- Parameters:
fileName – The name of the file to load from.
- Throws:
runtime_error – If the given file does not contain an HeContext object, or if the object was saved with a mismatching HElayers version.