Skip to content

Allow optika 3 - #38

Merged
roytsmart merged 1 commit into
mainfrom
feature/optika-3
Oct 8, 2026
Merged

roytsmart merged 1 commit into
mainfrom
feature/optika-3

Conversation

@roytsmart

Copy link
Copy Markdown
Contributor

optika 3.0.0 is out (release notes). ctis requires optika~=2.1, so no ctis release can be installed alongside it.

Change

optika~=2.1 becomes optika>=2.1,<4.

ctis uses optika through OptikaInstrument.system, an optika.systems.AbstractLinearSystem. It calls sensor.axis_pixel, coordinates_sensor, weights(), weights_transposed(), image_from_weights() and backproject_from_weights(), whose signatures 3.0 leaves as they were; it only adds footprint() and field_stop_ to the class. The tests build an optika.systems.LinearSystem by hand from a SimpleDistortionModel, an InterpolatedEffectiveAreaModel and an ImagingSensor, none of which changed.

One thing does change for users rather than for ctis: a LinearSystem from optika 3's SequentialSystem.linearize() carries the field of view, so an OptikaInstrument built on one images nothing from outside it. linearize(field_stop=False) gives the old behavior.

Tests

  • The full suite passes against optika 3.0.0 from PyPI with named-arrays 2.14.0: 59 tests.
  • CI tests Python 3.12 and 3.13, which both resolve optika 3.0.0, so the 2.x lower bound is no longer tested. Nothing ctis uses changed between them.

🤖 Generated with Claude Code

https://claude.ai/code/session_01BYjDL98znSud1yFh9chnkP

optika 3.0.0 changes nothing ctis uses, so the requirement is widened from
the 2.x series to >=2.1,<4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BYjDL98znSud1yFh9chnkP
@codecov

codecov Bot commented Oct 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (b69e037) to head (ffd2fd9).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #38   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           24        24           
  Lines          918       918           
=========================================
  Hits           918       918           
Flag Coverage Δ
unittests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@roytsmart
roytsmart merged commit c847760 into main Oct 8, 2026
12 checks passed
@roytsmart
roytsmart deleted the feature/optika-3 branch October 8, 2026 16:35
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