Skip to content

Commit

Permalink
Remove redundant import and getattr statements
Browse files Browse the repository at this point in the history
  • Loading branch information
ladc committed Aug 20, 2024
1 parent 6452ef2 commit 1e07f8d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pysteps/postprocessing/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
"""
import importlib

from pkg_resources import iter_entry_points

import pysteps.postprocessing
from pysteps.postprocessing import diagnostics
from pprint import pprint
Expand Down Expand Up @@ -48,7 +46,6 @@ def discover_diagnostics():
diagnostics_function_name = _diagnostics.__name__
diagnostics_short_name = diagnostics_function_name.replace("diagnostics_", "")

Check warning on line 47 in pysteps/postprocessing/interface.py

View check run for this annotation

Codecov / codecov/patch

pysteps/postprocessing/interface.py#L46-L47

Added lines #L46 - L47 were not covered by tests

_diagnostics_kws = getattr(_diagnostics, "diagnostics_kws", dict())
if diagnostics_short_name not in _diagnostics_methods:
_diagnostics_methods[diagnostics_short_name] = _diagnostics

Check warning on line 50 in pysteps/postprocessing/interface.py

View check run for this annotation

Codecov / codecov/patch

pysteps/postprocessing/interface.py#L49-L50

Added lines #L49 - L50 were not covered by tests
else:
Expand Down

0 comments on commit 1e07f8d

Please sign in to comment.