pyrot.eye_modelling.datamodels.model_import#

Import eye model geometries to RayOcular.

Functions#

import_eye_model(→ None)

Update the eye model of the geometry_generator to match the values of the .json file.

Module Contents#

pyrot.eye_modelling.datamodels.model_import.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.