Skip to content

Fix PupilTransmission emission after update#900

Merged
oczoske merged 1 commit intomainfrom
oc/fix_cold_stop
Apr 12, 2026
Merged

Fix PupilTransmission emission after update#900
oczoske merged 1 commit intomainfrom
oc/fix_cold_stop

Conversation

@oczoske
Copy link
Copy Markdown
Collaborator

@oczoske oczoske commented Apr 10, 2026

PupilTransmission().update_transmission used to reinstantiate SpectralSurface with emission without units, which caused apply_to to fail. This was not unit tested, hence went unnoticed. The PR reinstantiates SpectralSurface with emissivity, which is used to construct emission. A new test checks that emission now has correct units; this fails with the old and passes with the new code.

@oczoske oczoske requested review from ShannonS00 and teutoburg April 10, 2026 14:30
@oczoske oczoske self-assigned this Apr 10, 2026
@oczoske oczoske added bugfix PR resolving one or more bugs (use "Bug" type for issues, not this label) effects Related to a ScopeSim effect labels Apr 10, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.79%. Comparing base (e7b4ac2) to head (c399626).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #900   +/-   ##
=======================================
  Coverage   74.79%   74.79%           
=======================================
  Files          69       69           
  Lines        8944     8944           
=======================================
  Hits         6690     6690           
  Misses       2254     2254           

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

@teutoburg teutoburg moved this to 👀 Awaiting Review in ScopeSim-development Apr 10, 2026
@oczoske oczoske merged commit 06e0769 into main Apr 12, 2026
46 of 47 checks passed
@oczoske oczoske deleted the oc/fix_cold_stop branch April 12, 2026 08:05
@github-project-automation github-project-automation Bot moved this from 👀 Awaiting Review to ✅ Done in ScopeSim-development Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix PR resolving one or more bugs (use "Bug" type for issues, not this label) effects Related to a ScopeSim effect

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants