Skip to content

Commit

Permalink
Generate graphics with valid date pools when event detection is decla…
Browse files Browse the repository at this point in the history
…red, #130
  • Loading branch information
james-d-brown committed Dec 24, 2024
1 parent cde94d4 commit 7d4394a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,7 @@ private static Outputs.GraphicFormat getGraphicsFormatOptions( Outputs.GraphicFo
}
// Valid date pools?
else if ( ( Objects.nonNull( builder.validDatePools() )
|| Objects.nonNull( builder.eventDetection() )
|| DeclarationInterpolator.hasExplicitValidDatePools( builder.timePools() ) )
&& options.getShape() == Outputs.GraphicFormat.GraphicShape.DEFAULT )
{
Expand Down
3 changes: 2 additions & 1 deletion wres-vis/src/wres/vis/charts/ChartFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -2365,7 +2365,8 @@ private static ChartType getChartType( MetricConstants metricName,
Objects.requireNonNull( metricName );

// Pooling window case
if ( graphicShape == GraphicShape.ISSUED_DATE_POOLS || graphicShape == GraphicShape.VALID_DATE_POOLS )
if ( graphicShape == GraphicShape.ISSUED_DATE_POOLS
|| graphicShape == GraphicShape.VALID_DATE_POOLS )
{
return ChartType.POOLING_WINDOW;
}
Expand Down

0 comments on commit 7d4394a

Please sign in to comment.