Skip to content

Conversation

@lmichel
Copy link
Contributor

@lmichel lmichel commented Nov 25, 2025

  • Fix a bug in the processing the space frame equinox.
  • Update of the Hipparcos catalogue (I/311/hip2) used as an example in viewer.rst

@codecov
Copy link

codecov bot commented Nov 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.04%. Comparing base (76a9ce9) to head (6971214).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #710      +/-   ##
==========================================
+ Coverage   84.03%   84.04%   +0.01%     
==========================================
  Files          79       79              
  Lines        8529     8537       +8     
==========================================
+ Hits         7167     7175       +8     
  Misses       1362     1362              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bsipocz bsipocz added this to the v1.8.1 milestone Nov 25, 2025
@ManonMarchand
Copy link
Member

Looks good to me. I'd remove the mention of the catalog change from the changelog: it's not really a bug, it's just recommended to use to recalculated version. And it's only in the documentation so it's ok if this is not mentioned in the changelog.

Copy link
Member

@bsipocz bsipocz left a comment

Choose a reason for hiding this comment

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

Minor comments, none of which is really relevant to this PR.

Comment on lines +20 to +21
- Fix a bug in the space frame equinox processing.
Update of the Hipparcos catalogue (I/311/hip2) used in the viewer doc [710]
Copy link
Member

Choose a reason for hiding this comment

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

No need for the docs mentions in the changelog, and fix PR number syntax

Suggested change
- Fix a bug in the space frame equinox processing.
Update of the Hipparcos catalogue (I/311/hip2) used in the viewer doc [710]
- Fix a bug in the space frame equinox processing. [#710]

raise MappingError(f"Cannot interpret field {hk_field} "
f"as a {('besselian' if besselian else 'julian')} timestamp")

time_instance = self. _build_time_instance(timestamp, representation, besselian)
Copy link
Member

Choose a reason for hiding this comment

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

With this typo, I suspect this line doesn't get test coverage

Suggested change
time_instance = self. _build_time_instance(timestamp, representation, besselian)
time_instance = self._build_time_instance(timestamp, representation, besselian)

Check the SkyCoord instance against the constant values given as parameters
"""
try:
assert scoo.ra.degree == pytest.approx(ra)
Copy link
Member

Choose a reason for hiding this comment

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

I haven't noticed this before, but in general we don't really use pytest.approx() but prefer the functionality from numpy.testing. It's not really a big issue here when comparing scalars, but elsewhere the numpy versions may be more preferred.

}


def check_skycoo(scoo, ra, dec, distance, pm_ra_cosdec, pm_dec, obstime):
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if there is a better way to compare the values to a SkyCoord object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants