Skip to content

docs: imaging pixelization fit.py CPU Users paragraph was the interferometer text (#506) - #507

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/pixelization-fit-cpu-users-docs
Aug 28, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/pixelization-fit-cpu-users-docs

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

The __CPU Users__ docstring block in scripts/imaging/features/pixelization/fit.py was the
interferometer paragraph: it talked about visibilities, set up "taking over hours", and pointed at
features/pixelization/many_visibilities_preparation, which exists only under
scripts/interferometer/ — so an imaging reader following it hit a dead link and misleading advice.

It is replaced with the imaging-correct guidance: on CPU the linear algebra of a pixelized source
reconstruction is fastest via the sparse operator formalism set up once with
dataset.apply_sparse_operator_cpu(), and features/pixelization/cpu_fast_modeling (which does
exist in this directory) shows the full CPU set up. The matching __Contents__ bullet is updated to
a one-line summary of the same.

Prose only — no code or behaviour change.

Scripts Changed

  • scripts/imaging/features/pixelization/fit.py — __CPU Users__ docstring paragraph rewritten
    (interferometer text → imaging sparse-operator CPU guidance), and the - **CPU Users:**
    __Contents__ bullet updated to match.

Test Plan

  • python -c "import ast; ast.parse(open(...).read())" on the edited script — parses.
  • Smoke run via the workspace runner
    (PyAutoHands/autohands/run_python.py autolens_workspace scripts --list <one-entry list> --env-config config/build/profile_smoke.yaml) — PASS (12.6s).
  • Notebooks not regenerated (docstring-only change; notebook generation deliberately not run in this
    session).

Library PR: PyAutoLabs/PyAutoArray#504 (comment-only, no gate dependency). Closes #506.

Generated by the PyAutoLabs agent workflow.

…rometer text (#506)

The `__CPU Users__` block in `scripts/imaging/features/pixelization/fit.py`
described visibilities, set up "taking over hours", and pointed at
`features/pixelization/many_visibilities_preparation`, which exists only
under `scripts/interferometer/`.

Replaced with the imaging-correct guidance: on CPU the linear algebra is
fastest via the sparse operator formalism set up once with
`dataset.apply_sparse_operator_cpu()`, with `features/pixelization/cpu_fast_modeling`
as the worked example. The matching `__Contents__` bullet is updated.

Prose only; no code or behaviour change.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XySQZP6Npj4adZMkYZ96Bo
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Aug 28, 2026
@Jammy2211
Jammy2211 merged commit b767596 into main Aug 28, 2026
7 checks passed
@Jammy2211
Jammy2211 deleted the feature/pixelization-fit-cpu-users-docs branch August 28, 2026 16:51
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Oct 7, 2026
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.

docs: fix imaging pixelization fit.py CPU Users paragraph, HowToLens numba clause, settings.py config-fallback comments

1 participant