Skip to content

Improve docstrings for autoarray/fit package#228

Merged
Jammy2211 merged 1 commit intomainfrom
feature/documentation-fit
Mar 9, 2026
Merged

Improve docstrings for autoarray/fit package#228
Jammy2211 merged 1 commit intomainfrom
feature/documentation-fit

Conversation

@Jammy2211
Copy link
Owner

Summary

  • fit_util.py: Added docstring to the to_new_array decorator; removed spurious mask parameter from residual_map_from and normalized_residual_map_from; fixed wrong Parameters section in chi_squared_with_mask_fast_from (was listing chi_squared_map, now correctly lists data/mask/model_data/noise_map); fixed three Returnss typos; fixed "o the""of the" typo in log_evidence_from
  • fit_dataset.py: Added docstrings to _xp, mask, grids, data, noise_map, figure_of_merit, reduced_chi_squared; removed incorrect Parameters section from the log_evidence property (properties don't have parameters); fixed "evey" typo
  • fit_imaging.py: Added docstrings to data and blurred_image; fixed "evey" typo
  • fit_interferometer.py: Fixed __init__ docstring (removed non-parameter items model_data/inversion, fixed MaskedInterferometerInterferometer); added docstrings to mask, transformer, and all seven dirty_* image-space properties; removed incorrect Parameters section from log_evidence; fixed "evey" typo

Test plan

  • Confirm existing tests still pass: python -m pytest test_autoarray/
  • Review docstrings render correctly in documentation

🤖 Generated with Claude Code

- fit_util.py: add docstring to `to_new_array` decorator; remove spurious
  `mask` param from `residual_map_from` and `normalized_residual_map_from`;
  fix wrong Parameters in `chi_squared_with_mask_fast_from` (was listing
  `chi_squared_map`, now lists the actual params: data/mask/model_data/noise_map);
  fix three "Returnss" typos; fix "o the" typo in `log_evidence_from`
- fit_dataset.py: add docstrings to `_xp`, `mask`, `grids`, `data`,
  `noise_map`, `figure_of_merit`, `reduced_chi_squared`; remove wrong
  Parameters section from `log_evidence` property; fix "evey" typo
- fit_imaging.py: add docstrings to `data` and `blurred_image`; fix "evey" typo
- fit_interferometer.py: fix `__init__` parameters (remove non-parameter items
  `model_data`/`inversion`, fix `MaskedInterferometer` → `Interferometer`);
  add docstrings to `mask`, `transformer`, and all seven `dirty_*` properties;
  fix `log_evidence` wrong Parameters section; fix "evey" typo

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Jammy2211 Jammy2211 merged commit cbd68f0 into main Mar 9, 2026
8 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