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

CADC-10810 - hdf5 support for TAOSII #187

Open
wants to merge 40 commits into
base: main
Choose a base branch
from

Conversation

SharonGoliath
Copy link
Collaborator

No description provided.

… uses metadata from a database query to create a record.
Copy link

codecov bot commented Feb 6, 2025

Codecov Report

Attention: Patch coverage is 93.75000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 93.63%. Comparing base (e9b122e) to head (d0af8ec).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
caom2utils/caom2utils/parsers.py 95.23% 3 Missing ⚠️
caom2utils/caom2utils/wcs_parsers.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #187      +/-   ##
==========================================
+ Coverage   93.56%   93.63%   +0.06%     
==========================================
  Files          26       26              
  Lines        8678     8687       +9     
==========================================
+ Hits         8120     8134      +14     
+ Misses        558      553       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

# self._wcs_parsers[0] = WcsParser(obs_blueprint, extension=0)
# used to set the astropy wcs info, resulting in a validated wcs
# that can be used to construct a valid CAOM2 record
self._wcs_parsers = {}
Copy link
Contributor

Choose a reason for hiding this comment

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

Argument not required. In fact I'm not sure the entire method is required.

Copy link
Collaborator Author

@SharonGoliath SharonGoliath Feb 12, 2025

Choose a reason for hiding this comment

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

This method call is over-writing the default behaviour in the ContentParser class. The default behaviour does require access to the obs_blueprint, and is called in the ContentParser constructor.

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add a comment so we (I) remember next time. Too bad Python doesn't have the @override decorator like Java has.

caom2utils/caom2utils/parsers.py Outdated Show resolved Hide resolved
caom2utils/caom2utils/parsers.py Outdated Show resolved Hide resolved
caom2utils/caom2utils/parsers.py Outdated Show resolved Hide resolved
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.

2 participants