Skip to content

Refactor TERCurve.apply_to() - #1004

Merged
teutoburg merged 1 commit into
mainfrom
fh/refac-ter
Sep 4, 2026
Merged

Refactor TERCurve.apply_to()#1004
teutoburg merged 1 commit into
mainfrom
fh/refac-ter

Conversation

@teutoburg

Copy link
Copy Markdown
Contributor

For detailed explanation see #1002, this is basically the same but for TERCurve. The new .__call__() in this case is exclusively for cubes, because 1D spectra work differently. But those could be simplified as well, and as a result the combine_two_spectra function was no longer needed.

Also finally remove the long-deprecated .fov_grid() methods that were still here. Everything passes without them. Well, except of course test_current_filter_has_fov_grid_method...

For detailed explanation see #1002, this is basically the same but for
`TERCurve`. The new `.__call__()` in this case is exclusively for cubes,
because 1D spectra work differently. But those could be simplified as well,
and as a result the `combine_two_spectra` function was no longer needed.

Also finally remove the long-deprecated `.fov_grid()` methods that were
still here. Everything passes without them. Well, except of course
`test_current_filter_has_fov_grid_method`...
@teutoburg teutoburg self-assigned this Aug 30, 2026
@teutoburg teutoburg added refactor Implementation improvement effects Related to a ScopeSim effect labels Aug 30, 2026
@teutoburg teutoburg moved this to 👀 Awaiting Review in ScopeSim-development Aug 30, 2026
@codecov

codecov Bot commented Aug 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 91.17647% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.44%. Comparing base (568c14e) to head (fdd4822).

Files with missing lines Patch % Lines
scopesim/effects/ter_curves.py 91.17% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1004      +/-   ##
==========================================
+ Coverage   76.29%   76.44%   +0.14%     
==========================================
  Files          69       69              
  Lines        9053     9029      -24     
==========================================
- Hits         6907     6902       -5     
+ Misses       2146     2127      -19     

☔ View full report in Codecov by Harness.
📢 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 requested a review from a team August 30, 2026 23:22
@teutoburg
teutoburg merged commit c47dc7a into main Sep 4, 2026
54 of 56 checks passed
@teutoburg
teutoburg deleted the fh/refac-ter branch September 4, 2026 17:28
@github-project-automation github-project-automation Bot moved this from 👀 Awaiting Review to ✅ Done in ScopeSim-development Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effects Related to a ScopeSim effect refactor Implementation improvement

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants