Skip to content
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-29266: Ask translator class to read additional HDUs #368

Merged
merged 3 commits into from Mar 23, 2021
Merged

Conversation

timj
Copy link
Member

@timj timj commented Mar 19, 2021

This allows CFHT and DECam ingest to happen without a specialist ingest task.

This allows CFHT and DECam ingest to happen without a specialist
ingest task.
python/lsst/obs/base/ingest.py Outdated Show resolved Hide resolved
Copy link
Member

@kfindeisen kfindeisen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

translator_class = MetadataTranslator.determine_translator(header, filename=filename)

# Obtain additional headers if needed
headers = translator_class.read_all_headers(filename.ospath, header)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit confusing that header here can be either the primary header or a hybrid primary+second header. However, I don't have a better name for the variable.

@timj timj merged commit ee590b1 into master Mar 23, 2021
@timj timj deleted the tickets/DM-29266 branch March 23, 2021 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants