Skip to content

Commit

Permalink
FIX: Fix new linting issues (#1407)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrover1 authored Mar 24, 2023
1 parent 446a838 commit 75cb884
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyart/core/radar.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ def _dic_info(self, attr, level, out, dic=None, ident_level=0):
else:
data = dic["data"]
t = (data.dtype, data.shape)
d_str = "<ndarray of type: %s and shape: %s>" % t
d_str = "<ndarray of type: {} and shape: {}>".format(*t)

# compact, only data summary
if level == "compact":
Expand Down
2 changes: 1 addition & 1 deletion pyart/io/cfradial.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ def write_cfradial(
node = platform.node()
time_str = datetime.datetime.now().isoformat()
t = (user, node, time_str)
history = "created by %s on %s at %s using Py-ART" % (t)
history = "created by {} on {} at {} using Py-ART".format(*t)

dataset.setncatts(metadata_copy)

Expand Down
2 changes: 1 addition & 1 deletion pyart/lazydict.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def __str__(self):
else:
seperator = ", "
lazy_reprs = [(repr(k), repr(v)) for k, v in self._lazyload.items()]
lazy_strs = ["%s: LazyLoad(%s)" % r for r in lazy_reprs]
lazy_strs = ["{}: LazyLoad({})".format(*r) for r in lazy_reprs]
lazy_str = ", ".join(lazy_strs) + "}"
return str(self._dic)[:-1] + seperator + lazy_str

Expand Down

0 comments on commit 75cb884

Please sign in to comment.