-
Notifications
You must be signed in to change notification settings - Fork 6
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
add imSim filter definitions #236
Conversation
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.
Looks good to me but I think we need an example header that will trigger this code. The example yaml header I have in the package doesn't seem to have a PKG header and the example data file doesn't either. It would be good if we could at least have a dumped yaml header added to the test_translator.py test.
@@ -29,7 +29,8 @@ | |||
from lsst.utils import getPackageDir | |||
from lsst.obs.base import Instrument | |||
from lsst.obs.base.gen2to3 import TranslatorFactory | |||
from .filters import LSSTCAM_FILTER_DEFINITIONS, LATISS_FILTER_DEFINITIONS | |||
from .filters import LSSTCAM_FILTER_DEFINITIONS, LATISS_FILTER_DEFINITIONS, \ |
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.
We tend to prefer the form of:
from .filters import (
LSSTCAM_FILTER_DEFINITIONS,
LATISS_FILTER_DEFINITIONS,
LSST_IMSIM_FILTER_DEFINITIONS,
)
for multi line rather than using a backslash.
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.
I'm happy to change, but I just followed the .translators
example below.
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.
😄 you got me. I can do a clean up pass at some point. Leave it.
# data, we used throughputs version 1.4. | ||
throughputs_version = None | ||
for key, value in self._header.items(): | ||
if key.startswith('PKG') and value == "throughputs": |
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.
Minor nit but this file consistently uses double quotes so could you please fix the single quotes?
I'll add update the |
@jchiang87 if you rebase I can do a jenkins run if you want to get this merged? |
@timj Sure, I can do the rebase this afternoon. Is there a specific rebasing procedure that the DM team prefers? |
Yes. Do not hit any buttons here convincing you to "update your branch"
|
ef564fd
to
6fb0d2d
Compare
Done. |
Test failed in some weird gen3 way so I'll have to take a look. |
The Gen3 test is failing because there is no physical filter
so which filter definitions would have been used for that? |
We've used the same filter defs for all DC2 sims. I've put a modern version of that file on lsst-dev in my home directory:
That file has the throughputs version keyword that will set the physical filter. |
That new file does work and leads to gen2 registry including the new filter name. The downside for gen2 is that this means that the flats can't be found because they are still Be aware that using proper physical filter names will mean you have to tweak all your reference flats to use the proper name. |
It sounds like there isn't an alternative to doing the hacky thing if we want to use the throughputs version number in the physical filter name, so we should just do that. Since there's precedent for replacing |
After discussion on Slack I'm going to fix butler ingest so we can keep the filter how we want it. |
36313bb
to
ddebca2
Compare
Co-authored-by: Kian-Tat Lim <ktl@slac.stanford.edu>
…e for physical_filter
This allow the throughputs headers to be read.
ddebca2
to
34b7d91
Compare
No description provided.