From 3b6ff9d218ccf01ad64ab2819db21caa456b851d Mon Sep 17 00:00:00 2001 From: Saransh Singh Date: Wed, 18 Dec 2024 16:26:14 -0800 Subject: [PATCH] PEP8 --- hexrdgui/scaling.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/hexrdgui/scaling.py b/hexrdgui/scaling.py index 71e7522be..cf16406bb 100644 --- a/hexrdgui/scaling.py +++ b/hexrdgui/scaling.py @@ -13,22 +13,25 @@ def none(x): def sqrt(x): if isinstance(x, np.ma.masked_array): - return np.sqrt(x.filled(np.nan) - - np.nanmin(x.filled(np.nan))) + return np.sqrt( + x.filled(np.nan) - + np.nanmin(x.filled(np.nan))) return np.sqrt(x - np.nanmin(x)) def log(x): if isinstance(x, np.ma.masked_array): - return np.log(x.filled(np.nan) - - np.nanmin(x.filled(np.nan)) + 1) + return np.log( + x.filled(np.nan) - + np.nanmin(x.filled(np.nan)) + 1) return np.log(x - np.nanmin(x) + 1) def log_log_sqrt(x): if isinstance(x, np.ma.masked_array): - return np.log(np.log(np.sqrt(x.filled(np.nan) - - np.nanmin(x.filled(np.nan))) + 1) + 1) + return np.log(np.log( + np.sqrt(x.filled(np.nan) - + np.nanmin(x.filled(np.nan))) + 1) + 1) return np.log(np.log(np.sqrt(x - np.nanmin(x)) + 1) + 1)