Skip to content

Commit 00e3bbc

Browse files
committed
Avoid ruff format changes
1 parent 40f5cd5 commit 00e3bbc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CMIP7/esm1p6/atmosphere/volcanic/cmip7_HI_volcanic_generate.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ def save_hi_year_interpolated_saod(
8787

8888
# Divide into latitude bands.
8989
for lat_band_nbr in range(NBR_OF_BANDS):
90-
saod = (saod_for_beg_year[month - 1, lat_band_nbr] * ratio
91-
+ saod_for_end_year[month - 1, lat_band_nbr] * (1.0 - ratio))
90+
saod_beg = saod_for_beg_year[month - 1, lat_band_nbr]
91+
saod_end = saod_for_end_year[month - 1, lat_band_nbr]
92+
saod = saod_beg * ratio + saod_end * (1.0 - ratio)
9293
print(
9394
f"{int(saod):5d}",
9495
end="",

0 commit comments

Comments
 (0)