de_twin.optics.serialem.to_serialem#

de_twin.optics.serialem.to_serialem(realism, camera, calibrations_path, properties_path=None, *, mag_table=None, lm_max_mag=None, calibration=None, spots=(1, 2, 3, 4, 5), reference_mag=20000.0, camera_index=0, flips=(False, False))[source]#

Write the calibrations SerialEM would measure on a column (and, with properties_path, the camera’s RotationAndPixel block). flips are the twin’s OpticsConfig.flip_x / flip_y.

Parameters:
  • mag_table (dict | None)

  • lm_max_mag (float | None)

  • reference_mag (float)

  • camera_index (int)

Return type:

None