Skip to content

Residual Flux Fraction#74

Merged
Jammy2211 merged 12 commits into
mainfrom
feature/rff
Oct 3, 2023
Merged

Residual Flux Fraction#74
Jammy2211 merged 12 commits into
mainfrom
feature/rff

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

This PR allows one to compute and plot the residual flux fraction [(data - model)/data] for an imaging fit.

@Jammy2211 Jammy2211 merged commit 2b4369a into main Oct 3, 2023
@Jammy2211 Jammy2211 deleted the feature/rff branch December 1, 2023 11:07
Jammy2211 pushed a commit that referenced this pull request May 1, 2026
… mode)

NumPy >=1.26 raises "object __array__ method not producing an array"
when __array__ returns a non-np.ndarray. Our impl returned self._array
directly, but _array can be a jax.Array on the JAX path (e.g. set by
`_array = jnp.where(...)` in __setitem__). Coerce to numpy via
np.asarray to satisfy the protocol contract.

Also added the `copy` kwarg introduced in numpy 2.0; without it, future
numpy may pass copy positionally and break the call.

Surfaced by python_matrix.yml smoke runs on autogalaxy_workspace, which
hit `np.array(vis.slim)` in autoarray/plot/utils.py:plot_visibilities_1d
on every Python version. Issue #74 in PyAutoBuild Category A.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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