From f3915fec8c4e9ea86c4faa9f849d215d8dc5ff70 Mon Sep 17 00:00:00 2001 From: Bhupendra Raut Date: Tue, 26 Dec 2023 14:39:10 -0600 Subject: [PATCH] 'LINTING ERR:import-block sorted;extra'()' removed' Follwing errors are fixed: pyart/retrieve/_echo_class_wt.py:192:26: UP034 [*] Avoid extraneous parentheses pyart/retrieve/echo_class.py:6:1: I001 [*] Import block is un-sorted or un-formatted Found 2 errors. [*] 2 fixable with the `--fix` option. Error: Process completed with exit code 1. --- pyart/retrieve/_echo_class_wt.py | 3 ++- pyart/retrieve/echo_class.py | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pyart/retrieve/_echo_class_wt.py b/pyart/retrieve/_echo_class_wt.py index 7b99b554bc..7039304189 100644 --- a/pyart/retrieve/_echo_class_wt.py +++ b/pyart/retrieve/_echo_class_wt.py @@ -189,7 +189,8 @@ def calc_scale_break(res_meters, conv_scale_km): integer scale break in dyadic scale. """ res_km = res_meters / 1000 - scale_break = np.log((conv_scale_km / res_km)) / np.log(2) + 1 + scale_break = np.log(conv_scale_km / res_km) / np.log(2) + 1 + return int(round(scale_break)) diff --git a/pyart/retrieve/echo_class.py b/pyart/retrieve/echo_class.py index de2ae7baef..a2149617db 100644 --- a/pyart/retrieve/echo_class.py +++ b/pyart/retrieve/echo_class.py @@ -7,10 +7,11 @@ import numpy as np +# Local imports from ..config import get_field_name, get_fillvalue, get_metadata -from ._echo_class import _feature_detection, steiner_class_buff -from ._echo_class_wt import wavelet_reclass, calc_scale_break from ..core import Grid +from ._echo_class_wt import wavelet_reclass, calc_scale_break +from ._echo_class import _feature_detection, steiner_class_buff def steiner_conv_strat(