Skip to content

feat: Enable GridPhaseProfile for torch backend

fef7efa
Select commit
Loading
Failed to load commit list.
Open

Enable GridPhaseProfile for PyTorch Backend #385

feat: Enable GridPhaseProfile for torch backend
fef7efa
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Nov 2, 2025 in 1s

92.91% (target 90.00%)

View this Pull Request on Codecov

92.91% (target 90.00%)

Details

Codecov Report

❌ Patch coverage is 95.12195% with 8 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
optiland/backend/interpolation/base.py 82.35% 3 Missing ⚠️
optiland/backend/interpolation/numpy_backend.py 89.47% 2 Missing ⚠️
optiland/backend/interpolation/torch_backend.py 96.72% 2 Missing ⚠️
optiland/backend/interpolation/__init__.py 91.66% 1 Missing ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #385      +/-   ##
==========================================
+ Coverage   92.87%   92.91%   +0.03%     
==========================================
  Files         253      258       +5     
  Lines       14221    14366     +145     
==========================================
+ Hits        13208    13348     +140     
- Misses       1013     1018       +5     
Files with missing lines Coverage Δ
optiland/phase/grid.py 100.00% <100.00%> (+8.57%) ⬆️
tests/backend/interpolation/test_interpolation.py 100.00% <100.00%> (ø)
optiland/backend/interpolation/__init__.py 91.66% <91.66%> (ø)
optiland/backend/interpolation/numpy_backend.py 89.47% <89.47%> (ø)
optiland/backend/interpolation/torch_backend.py 96.72% <96.72%> (ø)
optiland/backend/interpolation/base.py 82.35% <82.35%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.