Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Fix new linting issues #1407

Merged
merged 1 commit into from
Mar 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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