Skip to content

Commit

Permalink
Fixing Flake8 W605
Browse files Browse the repository at this point in the history
  • Loading branch information
jfcrenshaw committed Dec 15, 2023
1 parent 64aa5ae commit a2cd270
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/lsst/ts/wep/utils/plotUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def plotPupilMaskElements(
xlabel="meters",
ylabel="meters",
aspect="equal",
title=f"$\\theta\,=\,${rTheta:.2f}$\!^\circ$",
title=rf"$\theta\,=\,${rTheta:.2f}$\!^\circ$",
)

# Draw the legend?
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/ts/wep/utils/zernikeUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def getZernikeParity(jmax, axis="x"):
zkStr = galsim.zernike.describe_zernike(j)

# Get all exponents
exponents = re.findall(f"(?<={axis}\^)[0-9]+|{axis}(?!\^)", zkStr) or [0]
exponents = re.findall(rf"(?<={axis}\^)[0-9]+|{axis}(?!\^)", zkStr) or [0]
exponents = np.array([1 if num == axis else int(num) for num in exponents])

# Get the remainders mod 2
Expand Down

0 comments on commit a2cd270

Please sign in to comment.