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

Allow different astropy Table.read() reader options when accessing MTLs #822

Merged
merged 3 commits into from
May 28, 2024

Conversation

geordie666
Copy link
Contributor

This PR updates the desitarget I/O code for MTLs to allow different reader options to be passed to the core Table.read() reader function.

Context:

  • We originally fixed the reader for MTLs to ascii.basic, as this reader is ~3-4x faster than, e.g., ascii.ecsv.
    • The ascii.basic option will remain the default after this PR.
  • The alt-MTL/mocks work is occasionally tripping on formatting errors that could be related to strict parsing using ascii.ecsv instead of ascii.basic.
    • This has never been a problem for the real MTLs, though.

This PR should address issue #818.

@geordie666
Copy link
Contributor Author

Unit tests will fail in this branch, but have been fixed in #814.

@geordie666 geordie666 merged commit def1256 into main May 28, 2024
4 of 10 checks passed
@geordie666 geordie666 deleted the ADM-ascii-ecsv branch May 28, 2024 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant