Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor: quiet two syntax warnings about string escape sequences #616

Merged
merged 1 commit into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion poppy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1362,7 +1362,7 @@ def as_decorator(cls, func=None, **kwargs):
-----

The checking of arguments inside variable arguments to a function is not
supported (i.e. \*arg or \**kwargs).
supported (i.e. *arg or **kwargs).

Examples
--------
Expand Down
4 changes: 2 additions & 2 deletions poppy/zernike.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ def str_zernike(n, m):
else:
return "sqrt(%d)* ( %s ) " % (n + 1, outstr)
elif signed_m > 0:
return "\sqrt{%d}* ( %s ) * \\cos(%d \\theta)" % (2 * (n + 1), outstr, m)
return "\\sqrt{%d}* ( %s ) * \\cos(%d \\theta)" % (2 * (n + 1), outstr, m)
else:
return "\sqrt{%d}* ( %s ) * \\sin(%d \\theta)" % (2 * (n + 1), outstr, m)
return "\\sqrt{%d}* ( %s ) * \\sin(%d \\theta)" % (2 * (n + 1), outstr, m)


def noll_indices(j):
Expand Down
Loading