Skip to content

Conversation

@Xiong-Ziyi
Copy link
Contributor

@Xiong-Ziyi Xiong-Ziyi commented Dec 22, 2025

Accept and forward fig_to_plot_on, max_extent, num_points_grid, and buffer_factor to SurfaceSagViewer.

This restores compatibility with gallery notebooks that call plot_surface_sag(..., max_extent=..., num_points_grid=...).

Fixes #423

Xiong-Ziyi and others added 4 commits December 22, 2025 22:42
Accept and forward fig_to_plot_on, max_extent, num_points_grid, and buffer_factor to SurfaceSagViewer.

This restores compatibility with gallery notebooks that call plot_surface_sag(..., max_extent=..., num_points_grid=...).
@codecov
Copy link

codecov bot commented Jan 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #424   +/-   ##
=======================================
  Coverage   92.27%   92.27%           
=======================================
  Files         295      295           
  Lines       17097    17097           
=======================================
  Hits        15777    15777           
  Misses       1320     1320           
Files with missing lines Coverage Δ
optiland/optic/optic.py 98.18% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@HarrisonKramer HarrisonKramer merged commit 6644bf4 into HarrisonKramer:master Jan 28, 2026
11 checks passed
@HarrisonKramer
Copy link
Owner

Thanks for fixing this, @Xiong-Ziyi!

Merging now.

Kramer

@Xiong-Ziyi Xiong-Ziyi deleted the fix/optic-plot-surface-sag-max-extent branch January 29, 2026 18:13
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.

Optic.plot_surface_sag() does not accept max_extent argument (breaks forbes_surface.ipynb)

2 participants