File tree Expand file tree Collapse file tree
autogalaxy/interferometer Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ """
2+ Fit an interferometer (ALMA/JVLA uv-plane) dataset with a model consisting of one or more galaxies.
3+
4+ `FitInterferometer` mirrors `FitImaging` but works in the uv-plane:
5+
6+ 1. Compute the sum of all galaxy light profile images.
7+ 2. Fourier-transform that image to ``profile_visibilities`` using the dataset's transformer.
8+ 3. Subtract from the observed visibilities to create ``profile_subtracted_visibilities``.
9+ 4. If linear light profiles or a pixelization are present, fit the residual visibilities via a
10+ linear inversion.
11+ 5. Combine the profile visibilities and inversion reconstruction into ``model_data``.
12+ 6. Compute residuals, chi-squared, and log-likelihood (or log-evidence when an inversion is used).
13+ """
114import numpy as np
215from typing import Dict , List , Optional
316
Original file line number Diff line number Diff line change 1+ """
2+ `AnalysisInterferometer` — the **PyAutoFit** `Analysis` class for fitting galaxy models to interferometer data.
3+
4+ This module provides `AnalysisInterferometer`, which implements `log_likelihood_function` by:
5+
6+ 1. Extracting galaxies from the model instance.
7+ 2. Constructing a `FitInterferometer` object from those galaxies and the stored `Interferometer` dataset.
8+ 3. Returning the `figure_of_merit` of the fit (log-likelihood or log-evidence).
9+
10+ It also handles adapt images, visualization, and result wrapping into `ResultInterferometer`.
11+ """
112import logging
213import numpy as np
314from typing import Optional
Original file line number Diff line number Diff line change 1+ """
2+ Extends the **PyAutoArray** `SimulatorInterferometer` class with galaxy-aware simulation.
3+
4+ `SimulatorInterferometer` (from `autoarray`) handles the low-level simulation: applying a Fourier
5+ transform and adding visibility noise. This module adds a `via_galaxies_from` method that takes a list
6+ of `Galaxy` objects and a 2D grid, evaluates the galaxy images, and passes them to the parent
7+ simulation pipeline.
8+ """
19import numpy as np
210from typing import List
311
You can’t perform that action at this time.
0 commit comments