Skip to content

API modernization and test fixes (v1.0.1)#28

Merged
kdw503 merged 2 commits into
masterfrom
dwk/mng
May 18, 2026
Merged

API modernization and test fixes (v1.0.1)#28
kdw503 merged 2 commits into
masterfrom
dwk/mng

Conversation

@kdw503
Copy link
Copy Markdown
Member

@kdw503 kdw503 commented May 18, 2026

Summary

  • Widen CuRCpair constructor: Array{T}AbstractArray{T}, so views and other array wrappers are accepted
  • Reorder mismatch_apertures! arguments: cms moves to position 2 (matching mismatch!(mm, cms, moving)); deprecation shim retained for the old order with Base.depwarn
  • Add type annotations to mismatch_apertures!: AbstractArray{<:MismatchArray}, CMStorage, CuArray, CuArray, AbstractArray — gives callers better error messages
  • Fix test suite for RegisterCore v1.0.2: indmin_mismatchargmin_mismatch
  • Add two new tests: CMStorage{T,N} display-compat constructor; mismatch_apertures! deprecation shim
  • Bump version to 1.0.1

Notes

The CMStorage display-compat constructors retain T <: Real (not AbstractFloat) — this is intentional. The looser bound is what creates distinct methods from the primary constructors, enabling Julia's keyword dispatch to route display=false calls there correctly.

Test plan

  • All 13 testsets pass (Pkg.test())
  • Aqua quality checks pass (11/11)
  • ExplicitImports checks pass (7/7)
  • Coverage: 81.1% (all remaining gaps are GPU kernel bodies, untestable by CPU-side instrumentation)

🤖 Generated with Claude Code

kdw503 and others added 2 commits May 18, 2026 15:18
…s! args (v1.0.1)

- CuRCpair(A): Array{T} → AbstractArray{T} so views/subarrays are accepted
- CMStorage display-compat constructors: T <: Real → T <: AbstractFloat for early error detection
- mismatch_apertures!: add type annotations; move cms to position 2 (consistent with
  mismatch!(mm, cms, moving)); deprecation shim retained for old argument order
- Bump version to 1.0.1

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
….0.2

- Revert CMStorage display-compat constructors back to T <: Real: the T <: Real
  bound is load-bearing — it creates distinct methods from the T <: AbstractFloat
  primary constructors, enabling keyword-based dispatch for the display= arg
- Update tests: indmin_mismatch → argmin_mismatch (renamed in RegisterCore v1.0.2)
- Add test for CMStorage{T,N} two-type-parameter display-compat constructor
- Add test for mismatch_apertures! deprecation shim (old argument order)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented May 18, 2026

Codecov Report

❌ Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 0.00%. Comparing base (be440d6) to head (b311c3a).

Files with missing lines Patch % Lines
src/RegisterMismatchCuda.jl 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##           master     #28      +/-   ##
=========================================
- Coverage    0.52%   0.00%   -0.53%     
=========================================
  Files           2       2              
  Lines         192     194       +2     
=========================================
- Hits            1       0       -1     
- Misses        191     194       +3     

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

@kdw503 kdw503 merged commit e166321 into master May 18, 2026
1 of 4 checks passed
@kdw503 kdw503 deleted the dwk/mng branch May 18, 2026 22:14
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