Skip to content

Commit

Permalink
'LINTING ERR:import-block sorted;extra'()' removed'
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
RBhupi committed Dec 26, 2023
1 parent 48f66a9 commit f3915fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pyart/retrieve/_echo_class_wt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))


Expand Down
5 changes: 3 additions & 2 deletions pyart/retrieve/echo_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit f3915fe

Please sign in to comment.