From cfe933acb02e843f8a8df428eaf696b5bac3638b Mon Sep 17 00:00:00 2001 From: Ian Czekala Date: Fri, 10 Nov 2023 09:45:06 +0000 Subject: [PATCH] changed to raw string to avoid deprecation warning. --- src/mpol/crossval.py | 2 +- src/mpol/plot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mpol/crossval.py b/src/mpol/crossval.py index db1e8612..25fbc049 100644 --- a/src/mpol/crossval.py +++ b/src/mpol/crossval.py @@ -410,7 +410,7 @@ def from_dartboard_properties( phi_edges: NDArray[floating[Any]], seed: int | None = None, ) -> DartboardSplitGridded: - """ + r""" Alternative method to initialize a DartboardSplitGridded object from Dartboard parameters. Args: diff --git a/src/mpol/plot.py b/src/mpol/plot.py index 31c66dfe..37291ae0 100644 --- a/src/mpol/plot.py +++ b/src/mpol/plot.py @@ -41,7 +41,7 @@ def get_image_cmap_norm(image, stretch='power', gamma=1.0, asinh_a=0.02): def plot_image(image, extent, cmap="inferno", norm=None, ax=None, clab=r"Jy arcsec$^{-2}$", xlab=r"$\Delta \alpha \cos \delta$ [${}^{\prime\prime}$]", - ylab="$\Delta \delta$ [${}^{\prime\prime}$]", + ylab=r"$\Delta \delta$ [${}^{\prime\prime}$]", ): r""" Wrapper for plt.imshow, with colorbar and colormap normalization.