Skip to content

Commit c672b6a

Browse files
committed
Use i in Shear docs rather than 1j except where explicitly talking about python complex type
(#218)
1 parent d2a69d9 commit c672b6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

galsim/shear.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,13 @@ def getG2(self):
206206
return self._g.imag
207207

208208
def getG(self):
209-
"""Return the magnitude of the reduced shear |g1 + 1j * g2| = sqrt(g1**2 + g2**2)
209+
"""Return the magnitude of the reduced shear |g1 + i g2| = sqrt(g1**2 + g2**2)
210210
Note: s.getG() is equivalent to s.g
211211
"""
212212
return abs(self._g)
213213

214214
def getBeta(self):
215-
"""Return the position angle of the reduced shear g exp(2j beta) == g1 + 1j * g2
215+
"""Return the position angle of the reduced shear g exp(2i beta) == g1 + i g2
216216
Note: s.getBeta() is equivalent to s.beta
217217
"""
218218
return 0.5 * numpy.angle(self._g) * galsim.radians

0 commit comments

Comments
 (0)