Skip to content

Reduce OpticalTrain.write_header() to the bare minimum#935

Open
teutoburg wants to merge 1 commit into
mainfrom
fh/write-less-to-header
Open

Reduce OpticalTrain.write_header() to the bare minimum#935
teutoburg wants to merge 1 commit into
mainfrom
fh/write-less-to-header

Conversation

@teutoburg
Copy link
Copy Markdown
Contributor

@teutoburg teutoburg commented May 27, 2026

As noted in the updated docstring, this method should only kick in for very minimal optical trains (e.g. new instruments added by students) or if all FITS header effects are intentionally switched off during testing or debug. Otherwise, any additional header keywords that are needed in the output should be included via the correct FITS header effects.

Closes AstarVienna/irdb#352.

@teutoburg teutoburg self-assigned this May 27, 2026
@teutoburg teutoburg moved this to 👀 Awaiting Review in ScopeSim-development May 27, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.62%. Comparing base (e386ea5) to head (8f22ef3).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #935      +/-   ##
==========================================
+ Coverage   75.17%   75.62%   +0.45%     
==========================================
  Files          70       70              
  Lines        9024     8974      -50     
==========================================
+ Hits         6784     6787       +3     
+ Misses       2240     2187      -53     

☔ 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 added the API How users interact with the software label May 27, 2026
@teutoburg teutoburg marked this pull request as ready for review May 27, 2026 23:14
@teutoburg teutoburg requested a review from oczoske May 27, 2026 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API How users interact with the software

Projects

Status: 👀 Awaiting Review

Development

Successfully merging this pull request may close these issues.

HAWKI missing !INST.pixel_scale

1 participant