From ae8be6692e2fe0e48c82f85b2600d44d4949ff5b Mon Sep 17 00:00:00 2001 From: Viljar Femoen Date: Sun, 21 Apr 2024 17:04:23 +0200 Subject: [PATCH] Fix formatting of example --- examples/processing/background_subtraction.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/examples/processing/background_subtraction.py b/examples/processing/background_subtraction.py index 7bd3cc303..146c4759f 100644 --- a/examples/processing/background_subtraction.py +++ b/examples/processing/background_subtraction.py @@ -14,11 +14,11 @@ s = pxm.data.twinned_nanowire(allow_download=True) s_filtered = s.subtract_diffraction_background( - "difference of gaussians", - inplace=False, - min_sigma=2, + "difference of gaussians", + inplace=False, + min_sigma=2, max_sigma=8, - ) +) hs.plot.plot_images( [s.inav[9, 42], s_filtered.inav[9, 42]], @@ -29,6 +29,7 @@ colorbar=None, ) # %% + """ The available methods differ for `Diffraction2D` datasets and `PolarDiffraction2D` datasets. @@ -42,9 +43,9 @@ s_polar = s.get_azimuthal_integral2d(npt=100, mean=True) s_polar_filtered = s_polar.subtract_diffraction_background( - "radial median", - inplace=False, - ) + "radial median", + inplace=False, +) hs.plot.plot_images( [s_polar.inav[9, 42], s_polar_filtered.inav[9, 42]],