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: Add translator methods to read all relevant HDUs #52

Merged
merged 15 commits into from
Mar 23, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion python/astro_metadata_translator/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,8 @@ def read_all_headers(cls, filename, primary=None):
# Prevent circular import by deferring
from .file_helpers import read_basic_metadata_from_file
kfindeisen marked this conversation as resolved.
Show resolved Hide resolved

yield read_basic_metadata_from_file(filename, 0)
# Merge primary and secondary header if they exist.
yield read_basic_metadata_from_file(filename, -1)
kfindeisen marked this conversation as resolved.
Show resolved Hide resolved


def _make_abstract_translator_method(property, doc, return_typedoc, return_type):
Expand Down