Skip to content

Gallery example fits K=6 and K=80 only, so the Read the Docs build finishes in time - #190

Merged
jeremymanning merged 1 commit into
mainfrom
fix/rtd-gallery-time
Nov 23, 2026
Merged

jeremymanning merged 1 commit into
mainfrom
fix/rtd-gallery-time

Conversation

@jeremymanning

Copy link
Copy Markdown
Member

The Read the Docs build of main is terminated at its 30-minute limit (build 36087155 for 56cb1a1 and, on 2026-10-29, the builds for 22eff8d). The time goes to one sphinx-gallery example, examples/plot_2d_image_factors.py: its K=320 fit took 303 s on Read the Docs for de4232f and runs past the limit now. The duration of that fit's first solver iteration depends on the host CPU's BLAS kernel (84 s natively on Apple Silicon, 500 to 1300 s in an x86-64 container depending on the OpenBLAS kernel).

What changes

  • examples/plot_2d_image_factors.py fits K=6 and K=80 and draws three panels; the K=320 fit is removed. The sentence "The largest fit takes the most time" is removed. The existing link to tutorial 05 now says that the tutorial compares more factor counts on the same image with the same settings, up to K=320.
  • Tutorial 05 is unchanged: its section 7 already fits K=5, 20, 80, 160 and 320 with the same arguments and shows the K=320 panel. It is executed locally and committed with its outputs, so Read the Docs does not run it.

Measurements

Read the Docs-like container (ubuntu 22.04 amd64, Python 3.11, 2 CPUs, the command sequence from the build log):

tree sphinx step this example
56cb1a1 557 s 512 s
this branch 62 s 15 s

Locally: make lint clean; tests/test_docs.py and tests/test_package.py 4 passed; make docs 0 warnings; the example takes 4.6 s.

Not changed

The first bounded Levenberg-Marquardt solve of a large-K fit can still take many steps (cap of 96,000 evaluations in htfa/_kernels.py); this PR only takes that fit out of the docs build.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DcKtyt2ULJKvi7Z1bbZU4G

…orial 05 for the K = 320 fit

The K = 320 fit's run time depends on the host's BLAS rounding and ran past
the Read the Docs 30-minute limit. Tutorial 05, which is executed locally and
committed with its outputs, already shows K = 5 to 320 with the same settings.
The example no longer claims that the largest fit takes the most time.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DcKtyt2ULJKvi7Z1bbZU4G
@jeremymanning
jeremymanning merged commit 195a052 into main Nov 23, 2026
34 checks passed
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