Skip to content

Commit 753911e

Browse files
Apply suggestions from code review
1 parent 09fa1c2 commit 753911e

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

e3sm_diags/driver/arm_diags_driver.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,6 @@ def _run_diag_diurnal_cycle_zt(parameter: ARMDiagsParameter) -> ARMDiagsParamete
180180
ds_test_plevs["lat"] = ds_test.lat
181181
ds_test_plevs["lon"] = ds_test.lon
182182

183-
# FIXME: `test_diurnal` differs compared to `main` branch
184-
# 684 nans compared to 223 nans
185183
test_diurnal, lst = composite_diurnal_cycle( # type: ignore
186184
ds_test_plevs, var, season, fft=False
187185
)

e3sm_diags/plot/arm_diags_plot.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class RegionStats(TypedDict):
6464
},
6565
"twpc2": {"cwv_max": 70, "cwv_min": 28, "bin_width": 2.0, "sitename": "Nauru"},
6666
"twpc3": {"cwv_max": 85, "cwv_min": 28, "bin_width": 2.0, "sitename": "Darwin"},
67-
"sgp": {"cwv_max": 75, "cwv_min": 20, "bin_width": 2.0, "sitename": "SGP"},
67+
"sgpc1": {"cwv_max": 75, "cwv_min": 20, "bin_width": 2.0, "sitename": "SGP"},
6868
}
6969

7070
# Precipitation threshold for convection onset, default 0.5 (in mm/hr).
@@ -79,7 +79,8 @@ def _plot_diurnal_cycle(parameter: ARMDiagsParameter, vars_to_data: RefsTestMetr
7979
parameter : ARMDiagsParameter
8080
The ARMDiagsParameter object containing the parameters for plotting.
8181
vars_to_data : RefsTestMetrics
82-
The ordered dictionary containing the variables to be plotted.
82+
The ordered dictionary containing the variables and their corresponding
83+
data.
8384
"""
8485
test = vars_to_data.test[0]
8586
ref = vars_to_data.refs[0][0]
@@ -258,7 +259,6 @@ def _plot_convection_onset_statistics(
258259
259260
For related publications and research information see the Neelin group
260261
webpage http://www.atmos.ucla.edu/~csi/.
261-
262262
"""
263263
region_info: Stats | None = REGION_INFO.get(region) # type: ignore
264264
if region_info is None:
@@ -287,7 +287,6 @@ def _plot_convection_onset_statistics(
287287
line_color = ["blue", "steelblue"]
288288
time_interval = 1
289289

290-
# FIXME: UnboundLocalError: local variable 'cwv_max' referenced before assignment
291290
number_of_bins = int(np.ceil((cwv_max - cwv_min) / bin_width))
292291
bin_center = np.arange(
293292
(cwv_min + (bin_width / 2)),

0 commit comments

Comments
 (0)