Skip to content

Commit 51c53bb

Browse files
gmeghmfisherlevine
authored andcommitted
Update higher order moment plot to also have downsampled table
1 parent 3ce4a0d commit 51c53bb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

python/lsst/summit/extras/plotting/psfPlotting.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ def plotHigherOrderMomentsData(
536536
table: Table,
537537
prefix: str = "",
538538
binSpacing: float = 0.1,
539+
maxPointsPerDetector: int = 5,
539540
):
540541
"""Plot coma, trefoil and kurtosis from the table on the provided axes.
541542
@@ -549,7 +550,11 @@ def plotHigherOrderMomentsData(
549550
The prefix to use for the column names in the table.
550551
binSpacing : `float`, optional
551552
The spacing between arrows and triangles in the plot.
553+
maxPointsPerDetector : `int`, optional
554+
The maximum number of points per detector to plot. If the number of
555+
points exceeds this value, a random subset will be selected.
552556
"""
557+
table = randomRowsPerDetector(table, maxPointsPerDetector)
553558
x = table[prefix + "x"]
554559
y = table[prefix + "y"]
555560
kurtosis = table["kurtosis"]

0 commit comments

Comments
 (0)