New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DM-16297: Add Gen3 butler support #105
Conversation
85001cb
to
03cc500
Compare
23eacbb
to
ce84327
Compare
ce84327
to
3b813f4
Compare
985569d
to
d098d43
Compare
This PR requires lsst/obs_base#170 and lsst/daf_butler#173 |
@@ -138,6 +138,10 @@ class LsstBaseTranslator(FitsTranslator): | |||
detectorSerials = None | |||
"""Mapping of detector serial number to raft, number, and name.""" | |||
|
|||
DETECTOR_MAX = 999 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is actually a maximum detector index to use, correct? Having this be 0 for latiss confused me due to this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. It's the maximum detector ID we can use before we change the size of the calculated detector_exposure_id
This will allow the Gen2 Mapper and the Gen3 Instrument classes to use the same definitions without depending on each other.
Tests still fail because register method does not do anything.
* writeCuratedCalibrations * applyConfigOverrides
The latter does not work properly if rmtree fails (eg on NFS) because it is not configured to ignore errors. Instead use mkdtemp in the setUp and remove it in the tearDown as is done in daf_butler.
For LATISS and TS3 at the moment since they take a while.
lsstCamMapper was not really doing anything clever to create the camera so copy the one line into gen3 instrument rather than importing the mapper code.
Without this if LsstCam is created first the subclasses won't read their cameras.
(although may be better to use pytest --profile).
This allows gen3 instrument to obtain it.
Otherwise you can get a race where pytest starts before all the camera YAML files have been created.
Although it can no longer run without a detector being supplied. We could make detector optional if we took that to mean we can skip the fix amp geometry step.
It seems that the latter has been deprecated for a while.
a16b6d8
to
7922e08
Compare
No description provided.