Skip to content

Commit 8577fa7

Browse files
authored
Merge pull request #298 from Jammy2211/docs/ellipse
docs: add module docstrings to ellipse package
2 parents 8b0f2d2 + 3c7510c commit 8577fa7

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

autogalaxy/ellipse/fit_ellipse.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
"""
2+
Fit isophotal ellipses to a 2D image dataset.
3+
4+
`FitEllipse` uses a single `Ellipse` (plus optional `EllipseMultipole` perturbations) to fit an imaging
5+
dataset. Rather than convolving a model image with a PSF, the fit works by:
6+
7+
1. Computing the (y, x) sample points distributed around the ellipse's perimeter.
8+
2. Interpolating the image data and noise-map at those sample points.
9+
3. Computing residuals between the interpolated data values and the mean intensity along the ellipse.
10+
11+
This is the classical isophote-fitting approach used in tools such as IRAF/ELLIPSE and galfit, and is
12+
appropriate for measuring galaxy morphology, position angles, axis ratios, and multipole perturbations
13+
directly from imaging data without fitting a parametric light profile model.
14+
"""
115
import numpy as np
216
from typing import List, Optional
317

autogalaxy/ellipse/model/analysis.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
"""
2+
`AnalysisEllipse` — the **PyAutoFit** `Analysis` class for fitting isophotal ellipse models to imaging data.
3+
4+
This module provides `AnalysisEllipse`, which implements `log_likelihood_function` by:
5+
6+
1. Extracting the ellipse (and optional multipoles) from the model instance.
7+
2. Constructing a `FitEllipse` object.
8+
3. Returning the `figure_of_merit` of the fit.
9+
10+
Unlike `AnalysisImaging`, this class does not use PSF convolution or linear inversions. It directly fits
11+
the isophotal structure of the image via interpolation along the ellipse perimeter.
12+
"""
113
import logging
214
import numpy as np
315
from typing import List, Optional

0 commit comments

Comments
 (0)