Skip to content

docs: refactor and complete docstrings for autoarray/dataset#224

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

docs: refactor and complete docstrings for autoarray/dataset#224
Jammy2211 merged 1 commit intomainfrom
feature/documentation

Conversation

@Jammy2211
Copy link
Owner

Summary

  • interferometer/simulator.py — complete rewrite of class and via_image_from docstrings, which had been incorrectly copy-pasted from SimulatorImaging and described non-existent parameters (real_space_shape_native, psf, exposure_time_map, etc.)
  • interferometer/dataset.py — rewrote from_fits (was describing unit conversions that don't exist); added docstrings to all undocumented properties (amplitudes, phases, uv_distances, dirty_image, dirty_noise_map, dirty_signal_to_noise_map, signal_to_noise_map, mask, psf, output_to_fits); documented psf_precision_operator_from; fixed apply_sparse_operator which had Parameters mixed up with Returns; added sparse_operator and raise_error_dft_visibilities_limit to __init__ Parameters
  • imaging/dataset.py — fixed apply_sparse_operator and apply_sparse_operator_cpu which had batch_size/use_jax listed under Returns instead of Parameters; added psf_setup_state description; expanded apply_mask to describe covariance matrix trimming and PSF state recomputation
  • abstract/dataset.py — fixed "signal-to-noise_maps mappers" phrasing; added docstrings to all undocumented properties (grid, shape_native, shape_slim, pixel_scales, mask, apply_over_sampling); added trimmed_after_convolution_from docstring explaining the post-convolution border trimming concept
  • grids.py — added docstrings to all four GridsDataset properties (lp, pixelization, blurring, border_relocator); added mask to __init__ Parameters; added full GridsInterface class docstring
  • imaging/simulator.py — fixed two typos ("simulaiton" → "simulation", "dirrection" → "diffraction"); documented xp and over_sample_size parameters in via_image_from
  • mock/mock_dataset.py — added full class and __init__ docstring explaining the default single-pixel grid behaviour
  • preprocess.py — fixed "removedd" typo; fixed array_counts_to_eps description which incorrectly said it converted "eps to counts"

Test plan

  • No functional changes — docstrings only
  • Verify no import errors: python -c "import autoarray"
  • Existing test suite passes: python -m pytest test_autoarray/

🤖 Generated with Claude Code

- interferometer/simulator.py: complete rewrite of class and method docstrings,
  which incorrectly described an Imaging observation with non-existent parameters
- interferometer/dataset.py: rewrite from_fits docstring (was describing unit
  conversions that don't exist); add docstrings to all undocumented properties
  (amplitudes, phases, uv_distances, dirty_image, dirty_noise_map,
  dirty_signal_to_noise_map, signal_to_noise_map, mask, psf, output_to_fits);
  document psf_precision_operator_from; fix apply_sparse_operator Parameters/Returns;
  add sparse_operator and raise_error_dft_visibilities_limit to __init__ Parameters
- imaging/dataset.py: fix apply_sparse_operator and apply_sparse_operator_cpu
  docstrings which had Parameters listed under Returns; add psf_setup_state
  description; expand apply_mask to describe covariance trimming and PSF state
- abstract/dataset.py: fix signal_to_noise_map and signal_to_noise_max phrasing;
  add docstrings to all undocumented properties (grid, shape_native, shape_slim,
  pixel_scales, mask, apply_over_sampling); add trimmed_after_convolution_from docstring
- grids.py: add docstrings to lp, pixelization, blurring, border_relocator properties;
  add mask to GridsDataset Parameters; add GridsInterface class docstring
- imaging/simulator.py: fix two typos ("simulaiton", "dirrection"); document xp
  and over_sample_size parameters in via_image_from
- mock/mock_dataset.py: add full class and __init__ docstring
- preprocess.py: fix "removedd" typo; fix array_counts_to_eps description which
  incorrectly said "eps to counts"

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Jammy2211 Jammy2211 merged commit fde112c 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