optiland.fileio.save_optiland_file

save_optiland_file(obj, filepath)[source]

Save an Optiland Optic to a JSON file.

Parameters:
  • obj – The Optic to save.

  • filepath – The path to the JSON file.