We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67e62a6 commit ba3be08Copy full SHA for ba3be08
hydrolib/tools/extforce_convert/utils.py
@@ -199,7 +199,10 @@ def map_method_to_averaging_type(
199
Corresponding value for `averagingType`, or "unknown" for invalid input.
200
"""
201
if old_forcing_method == 6:
202
- averaging_type = AVERAGING_TYPE_DICT.get(int(averaging_type), "unknown")
+ if averaging_type is None:
203
+ averaging_type = AveragingType.mean
204
+ else:
205
+ averaging_type = AVERAGING_TYPE_DICT.get(int(averaging_type), "unknown")
206
else:
207
averaging_type = "unknown"
208
0 commit comments