This note is about python application which allows to check optical metrology input during measurement.
Introduction
Optical metrology measurements contains enough information for self check. Historically this quality check is done offline when entire detector or its quad is measured and entire file is available. Sometimes this file contains typo, which can be fixed using over-defined rectangular geometry of the detector segments. However, it could be much better to fix this problem during optical measurements with microscope. Simple application which can check partial optical metrology input is now available and discussed in this note.
Get application up and running
Direct usage
Optical metrology quality check (QC) application is implemented as a self consistent script which uses standard python features with numpy and matplotlib libraries. It can be downloaded from
https://github.com/lcls-psana/CalibManager/blob/master/app/optical_metrology_check
and used as is.
Use from psana release
However, for development purpose it could be better to use it through psana-conda release system. Code is available since ana-1.2.8. Example:
# run the script on optical metrology file optical_metrology_check -h optical_metrology_check <opt-met-file.txt>