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 linting errors #1437

Merged
merged 1 commit into from
Jul 15, 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
4 changes: 1 addition & 3 deletions pyart/aux_io/sinarame_h5.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,9 +400,7 @@ def write_sinarame_cfradial(path):
for j in np.arange(len(files)):
basename = os.path.basename(files[j])
bs = basename.split("_")
base1 = "{b1}_{b2}_{b3}_{fn}_{b4}".format(
b1=bs[0], b2=bs[1], b3=bs[2], fn=bs[3], b4=bs[4]
)
base1 = f"{bs[0]}_{bs[1]}_{bs[2]}_{bs[3]}_{bs[4]}"
file = f"{path_user}/{base1}"

if j == 0:
Expand Down
8 changes: 2 additions & 6 deletions pyart/graph/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,7 @@ def generate_longitudinal_level_title(grid, field, level):
else:
direction = "west"
disp = -disp
l1 = "{} {:.1f} km {} of origin {} ".format(
generate_grid_name(grid), disp, direction, time_str
)
l1 = f"{generate_grid_name(grid)} {disp:.1f} km {direction} of origin {time_str} "
field_name = generate_field_name(grid, field)
return l1 + "\n" + field_name

Expand Down Expand Up @@ -399,9 +397,7 @@ def generate_latitudinal_level_title(grid, field, level):
else:
direction = "south"
disp = -disp
l1 = "{} {:.1f} km {} of origin {} ".format(
generate_grid_name(grid), disp, direction, time_str
)
l1 = f"{generate_grid_name(grid)} {disp:.1f} km {direction} of origin {time_str} "
field_name = generate_field_name(grid, field)
return l1 + "\n" + field_name

Expand Down
4 changes: 1 addition & 3 deletions pyart/retrieve/kdp_proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1615,9 +1615,7 @@ def boundary_conditions_maesaka(

if debug:
print(
"Peak of system phase distribution: {:.0f} deg".format(
system_phase_peak_left
)
f"Peak of system phase distribution: {system_phase_peak_left:.0f} deg"
)

# determine left edge location of system phase distribution
Expand Down