record_distortion_fit#

esis.flights.f1.optics.record_distortion_fit(passes, directory, clocking, tolerance=<Quantity 0.05 deg>)[source]#

Write the tables the package commits from the passes of the iteration.

The fit is the last pass’s: its tables are copied, and its field stop is the one that pass was fit with, field_stop_input.ecsv in its directory, whose metadata gains the history of the iteration, the clocking on the sky through the fit, and what the earlier paper gives for comparison.

Parameters:
  • passes (list[str | Path]) – The directory of every pass, in order: the first fit with the regular octagon, each later one with the stop the one before it measured, and the last one’s measurement the check that ended the iteration.

  • directory (str | Path) – The directory to write the tables into.

  • clocking (dict) – The clocking of the stop through the last pass, see measure_clocking().

  • tolerance (Quantity) – The tolerance the iteration ended on, see field_stop_converged().

Return type:

The field stop, as written.

Raises:

ValueError – If there is only one pass, the fit with the regular octagon, or if the last pass’s measurement moved the stop.