pyrot.eye_modelling.datamodels.model_import =========================================== .. py:module:: pyrot.eye_modelling.datamodels.model_import .. autoapi-nested-parse:: Import eye model geometries to RayOcular. Functions --------- .. autoapisummary:: pyrot.eye_modelling.datamodels.model_import.import_eye_model Module Contents --------------- .. py:function:: import_eye_model(geometry_generators, path_to_json: os.PathLike | str) -> None Update the eye model of the geometry_generator to match the values of the .json file. This function gathers patient, case, and examination information from an exported .json file (ideally, exported through pyROT's full_export function) and updates an eye model based on this information. Parameters ---------- geometry_generators The geometry generators object containing the eye model to be updated with the imported data path_to_json : The path to the .json file containing the eye model description Notes ----- Assumes the format of the .json file matches that of the .json files exported by pyROT's `full_export` function.