Skip to content

Commit

Permalink
code norms
Browse files Browse the repository at this point in the history
  • Loading branch information
azadeh-gh committed Nov 5, 2024
1 parent 63b7f7b commit 2a57aec
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions ush/SpatialTemporalStatsTool/SpatialTemporalStats.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,14 +264,11 @@ def plot_obs(self, selected_var_gdf, var_name, region, resolution, output_path):
cmap = "jet"

if item == "Obs_Minus_Forecast_adjusted_Count":
cbar_label = (
"grid=%dx%d, min=%.3lf, max=%.3lf\n"
% (
resolution,
resolution,
min_val,
max_val,
)
cbar_label = "grid=%dx%d, min=%.3lf, max=%.3lf\n" % (
resolution,
resolution,
min_val,
max_val,
)
else:
cbar_label = (
Expand All @@ -285,8 +282,7 @@ def plot_obs(self, selected_var_gdf, var_name, region, resolution, output_path):
std_val,
)
)



filtered_gdf.plot(
ax=ax,
cmap=cmap,
Expand Down Expand Up @@ -574,7 +570,7 @@ def parse_filter(s):
metavar="DIR",
type=str,
)

parser.add_argument(
"-sensor",
dest="sensor",
Expand Down

0 comments on commit 2a57aec

Please sign in to comment.