We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c035566 commit 09dd230Copy full SHA for 09dd230
src/ctapipe/image/hillas.py
@@ -165,9 +165,8 @@ def hillas_parameters(geom, image):
165
psi_uncert = np.sqrt(lsq_cov[0, 0] + p[0] * p[0]) * (
166
1.0 + pow(np.tan(width / length * np.pi / 2.0), 2)
167
)
168
- transverse_cog_uncert = np.sqrt(
169
- lsq_cov[1, 1] * (1.0 + np.sin(p[0]) * np.sin(p[0]))
170
- )
+ sin_p0 = np.sin(p[0])
+ transverse_cog_uncert = np.sqrt(lsq_cov[1, 1] * (1.0 + sin_p0 * sin_p0))
171
172
# Compute of the Hillas parameters uncertainties.
173
# Implementation described in [hillas_uncertainties]_ This is an internal MAGIC document
0 commit comments