File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 227
227
# Determines how to form ensembles.
228
228
DAY_WINDOW_SIZE = flags .DEFINE_integer (
229
229
'day_window_size' ,
230
- 10 ,
230
+ 15 ,
231
231
help = (
232
- 'Width of window (in days) to take samples from. Must be in [0 , 2*364].'
232
+ 'Width of window (in days) to take samples from. Must be in [1 , 2*364].'
233
233
),
234
234
)
235
235
ENSEMBLE_SIZE = flags .DEFINE_integer (
@@ -412,10 +412,10 @@ def _get_sampled_init_times(
412
412
"""
413
413
rng = np .random .default_rng (seed )
414
414
415
- if day_window_size > 2 * 364 :
415
+ if day_window_size <= 0 or day_window_size > 2 * 364 :
416
416
# This complicates the REFLECT_RANGE behavior, and no sensible human would
417
417
# want this.
418
- raise ValueError (f'{ day_window_size = } > 2 * 364, which is not allowed .' )
418
+ raise ValueError (f'{ day_window_size = } not in [1, 2 * 364] but should be .' )
419
419
420
420
# The scheme below samples uniformly over initial day (ignoring leap years).
421
421
# Conceptually, think of each climatology year as a circle. The days
You can’t perform that action at this time.
0 commit comments