Skip to content

Commit

Permalink
Fix invalid escape seq warning by using a raw string
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshnielsen committed Nov 8, 2024
1 parent 5ece028 commit 358a128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plottr/analyzer/fitters/generic_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Cosine(Fit):
@staticmethod
def model(coordinates: np.ndarray,
A: float, f: float, phi: float, of: float) -> np.ndarray:
"""$A \cos(2 \pi f x + \phi) + of$"""
r"""$A \cos(2 \pi f x + \phi) + of$"""
return A * np.cos(2 * np.pi * coordinates * f + phi) + of

@staticmethod
Expand Down

0 comments on commit 358a128

Please sign in to comment.