Skip to content

Conversation

@MasanoriKanamaru
Copy link
Member

@MasanoriKanamaru MasanoriKanamaru commented Jul 22, 2025

Summary

This PR removes the deprecated apply_eclipse_shadowing! function signature that uses the t₁₂ parameter, as planned in the ROADMAP.md for v0.5.0.

Breaking Changes

  • Removed: Old API signature with parameter order (shape1, r☉₁, R₁₂, t₁₂, shape2)
  • Kept: New API signature with parameter order (shape1, shape2, r☉₁, r₁₂, R₁₂)

Changes

  • Removed deprecated function implementation from src/eclipse_shadowing.jl
  • Updated all tests to use the new API
  • Removed obsolete performance comparison test that was comparing identical implementations
  • Updated migration guide documentation
  • Marked task as completed in ROADMAP.md

Migration

Users should update their code from:

apply_eclipse_shadowing!(illuminated_faces, shape1, r☉₁, R₁₂, t₁₂, shape2)

To:

apply_eclipse_shadowing!(illuminated_faces, shape1, shape2, r☉₁, r₁₂, R₁₂)

Where r₁₂ is shape2's position in shape1's frame (previously computed as r₁₂ = -R₁₂' * t₁₂).

Test Results

All tests pass with the updated API.

🤖 Generated with Claude Code

BREAKING CHANGE: Remove function signature that uses t₁₂ parameter

The old signature with parameter order (shape1, r☉₁, R₁₂, t₁₂, shape2)
has been removed. Use the new signature (shape1, shape2, r☉₁, r₁₂, R₁₂)
which directly accepts shape2's position for better SPICE integration.
- Update test_eclipse_shadowing.jl to use new API signature
- Remove obsolete performance comparison test
- Update test_visibility_extended.jl to use new API
- Remove consistency test between old and new APIs
- Update migration guide to reflect API change
- Mark task as completed in ROADMAP.md
@MasanoriKanamaru MasanoriKanamaru changed the title Remove deprecated apply_eclipse_shadowing\! API Remove deprecated apply_eclipse_shadowing! API Jul 22, 2025
@MasanoriKanamaru MasanoriKanamaru changed the title Remove deprecated apply_eclipse_shadowing! API Remove deprecated apply_eclipse_shadowing! API Jul 22, 2025
Document the removal of deprecated apply_eclipse_shadowing! signature
in the Unreleased section of CHANGELOG.md
@codecov
Copy link

codecov bot commented Jul 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.03%. Comparing base (2c21f2e) to head (1669852).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #51      +/-   ##
==========================================
- Coverage   91.77%   91.03%   -0.74%     
==========================================
  Files          14       14              
  Lines         547      502      -45     
==========================================
- Hits          502      457      -45     
  Misses         45       45              

☔ 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.

- Reorganize sections with Getting Help and Future Deprecations at the top
- Add comprehensive migration instructions for removed apply_eclipse_shadowing! signature
- Include detailed code examples showing migration from t₁₂ to r₁₂ parameter
- Remove outdated references to deprecated API in future deprecations section
@MasanoriKanamaru MasanoriKanamaru merged commit ad34961 into main Jul 22, 2025
11 checks passed
@MasanoriKanamaru MasanoriKanamaru deleted the remove-deprecated-eclipse-api branch July 22, 2025 15:23
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