Open kfanning opened 2 years ago
Note that simply replacing data/petal-alignments.yaml
is probably not sufficient here since that would overwrite the metrology needed to analyze all pre-shutdown FVC data.
The minimal change is probably to update the API by adding an optional date or exposure ID parameter to the ptl2fp
and fp2ptl
methods of desimeter.transform
.
We need time dependent configurations for desimeter. One approach would be to list the calibration files (petal transformation, but also fiducials and positioners IDs in the metrology table, new metrology table patch if some fiducials have moved, new distortion coefficients for the transforms) would be listed in a configuration yaml file, with several configurations depending on the date of the observations, like we do for the spectroscopic pipeline (see https://desi.lbl.gov/trac/wiki/Pipeline/SpectroCalib and the calibration finder code https://github.com/desihub/desispec/blob/master/py/desispec/calibfinder.py)
For reference, the before/after alignments are displayed in this interactive notebook.
I just created a new branch where the yaml file is updated for the post-shutdown alignment. This is not the way forward (so should not be merged), but at least allows @deisenstein to continue analyzing the new calibration data via:
git fetch
git checkout new-petal-align
pip install .
More details: the new branch has separate petal-alignments-121.yaml
(before) and petal-alignments-200.yaml
(after) files with petal-alignment.yaml
a soft link to the newer parameters.
I just rebased the new-petal-align
branch onto #189 with
git rebase --onto fvcproc master new-petal-align
New focal plane metrology (petal alignments) provided by Steve is needed for offline FP calibration analysis.
json copied to text below with updated information: {
"type": "group", "name": "focal_plane_metrology", "version": 200, "elements": [
} },
} },
} },
} },
} },
} },
} },
} },
} },
} }
}