Skip to content

Commit 4421193

Browse files
authored
Change print function in check_norain function (#357)
* Change print function in check_norain function Minor print statement change to print the right information in the check_norain function in the blending.utils module. * Restore one deleted line
1 parent 563de17 commit 4421193

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pysteps/blending/utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,7 @@ def check_norain(precip_arr, precip_thr=None, norain_thr=0.0):
553553
precip_thr = np.nanmin(precip_arr)
554554
rain_pixels = precip_arr[precip_arr > precip_thr]
555555
norain = rain_pixels.size / precip_arr.size <= norain_thr
556-
print("Field is below no rain fraction :", norain)
557-
print("rain fraction is :", rain_pixels.size / precip_arr.size)
556+
print(
557+
f"Rain fraction is: {str(rain_pixels.size / precip_arr.size)}, while minimum fraction is {str(norain_thr)}"
558+
)
558559
return norain

0 commit comments

Comments
 (0)