Skip to content

don't promote when types compatible for StaticUnitBall - #186

Merged
daanhb merged 1 commit into
masterfrom
dl/don't-promote-when-types-compatible
Sep 9, 2026
Merged

daanhb merged 1 commit into
masterfrom
dl/don't-promote-when-types-compatible

Conversation

@dlfivefifty

Copy link
Copy Markdown
Member

I ran into an issue with the default behaviour of converting everything to SVector in in: for a special SphericalCoordinate type it can cause the norm to become greater than 1. This works around this.

@codecov

codecov Bot commented Aug 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.93%. Comparing base (51f44b6) to head (64843e5).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #186   +/-   ##
=======================================
  Coverage   93.92%   93.93%           
=======================================
  Files          27       27           
  Lines        1845     1846    +1     
=======================================
+ Hits         1733     1734    +1     
  Misses        112      112           

☔ View full report in Codecov by Harness.
📢 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.

@dlfivefifty
dlfivefifty requested a review from daanhb September 9, 2026 11:13
@daanhb

daanhb commented Sep 9, 2026

Copy link
Copy Markdown
Member

This looks good to me. We probably want to do that in more places, avoid unnecessary conversions.

@daanhb daanhb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@daanhb
daanhb merged commit 0523e1d into master Sep 9, 2026
7 checks passed
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