Skip to content

Conversation

@icweaver
Copy link
Member

@icweaver icweaver commented Nov 5, 2025

Closes #34

@codecov
Copy link

codecov bot commented Nov 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.28%. Comparing base (7ccd42d) to head (99e1e03).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #35   +/-   ##
=======================================
  Coverage   74.28%   74.28%           
=======================================
  Files           8        8           
  Lines         140      140           
=======================================
  Hits          104      104           
  Misses         36       36           

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

@cgarling
Copy link
Member

cgarling commented Nov 5, 2025

Great, thanks!

@icweaver
Copy link
Member Author

icweaver commented Nov 5, 2025

I might have spoken too soon 😅. 1 test is currently breaking in our resampling PR. Will take a quick look

@icweaver
Copy link
Member Author

icweaver commented Nov 5, 2025

Ahhh, ok. This line, for example, tries to replace a mutable field with another one, which fails as expected when spec is made immutable

spec.flux = Spectra.flux(spec_new)

I think sprinkling in a dot, e.g., spec.flux .= Spectra.flux(spec_new) , won't really save us here since we can't guarantee that the new array will be the same size.

Would it make sense to just return a new immutable struct instead?

@cgarling
Copy link
Member

cgarling commented Nov 5, 2025

Thanks for checking, sounds like there's an issue in the test code, not in the package code?

I think for resampling as per #26 we want to return a new instance rather than mutating an existing one. I'm not sure the resample! methods as defined in the test file make sense here

@icweaver
Copy link
Member Author

icweaver commented Nov 5, 2025

sgtm! Dropped in the other PR and will go ahead and merge here

@icweaver icweaver merged commit b52dd62 into main Nov 5, 2025
6 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.

Mutable Spectrum?

2 participants