diff --git a/wres-config/src/wres/config/yaml/DeclarationUtilities.java b/wres-config/src/wres/config/yaml/DeclarationUtilities.java index 136bb2971..bb302ac5f 100644 --- a/wres-config/src/wres/config/yaml/DeclarationUtilities.java +++ b/wres-config/src/wres/config/yaml/DeclarationUtilities.java @@ -121,7 +121,7 @@ public static Set getTimeWindows( EvaluationDeclaration declaration TimePools referenceDatesPools = declaration.referenceDatePools(); TimePools validDatesPools = declaration.validDatePools(); - Set timeWindows; + Set timeWindows = Set.of(); // Default to none // Add the time windows generated from a declared sequence if ( Objects.nonNull( leadDurationPools ) @@ -179,8 +179,9 @@ else if ( Objects.nonNull( leadDurationPools ) ) timeWindows = DeclarationUtilities.getValidDatesTimeWindows( declaration ); } } - // One big pool - else + // One big pool if no explicitly declared time windows + else if( declaration.timeWindows() + .isEmpty() ) { LOGGER.debug( "Building one big time window." ); diff --git a/wres-config/src/wres/config/yaml/DeclarationValidator.java b/wres-config/src/wres/config/yaml/DeclarationValidator.java index 12cbf06f1..9fc272e24 100644 --- a/wres-config/src/wres/config/yaml/DeclarationValidator.java +++ b/wres-config/src/wres/config/yaml/DeclarationValidator.java @@ -2218,9 +2218,9 @@ private static List timePoolsAreValid( EvaluationDeclarat .setStatusLevel( StatusLevel.WARN ) .setEventMessage( "The declaration contained both an explicit list of " + "'time_pools' and an implicitly declared sequence of " - + "pools (" + + "pools: " + generated - + "). This is allowed and the " + + ". This is allowed, and the " + "resulting pools from all sources will be added " + "together. If this was not intended, please adjust " + "your declaration." )