Skip to content

Commit 2303981

Browse files
committed
Improve seasonal warning
1 parent 0c034da commit 2303981

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ function main(;
8686
@info "Write output to $outdir"
8787
end
8888

89-
if end_date - start_date < Dates.Day(365)
90-
@warn "Selected time series is less than a year. This will introduce seasonal bias."
89+
if Dates.Day(start_date) != Dates.Day(end_date) || Dates.Month(start_date) != Dates.Month(end_date)
90+
@warn "Selected time series does not include a multiple of whole years. This might introduce seasonal bias."
9191
end
9292

9393
YAXDefaults.workdir[] = outdir

0 commit comments

Comments
 (0)