Skip to content

Commit df2fecb

Browse files
committed
v556 - [BENCHMARKED] - bug fix for STEP interpolation of hourly data
Correct issue causing daily irregular STEP time series values to be interpolated between at hourly scale even with blank data
1 parent 88c6b02 commit df2fecb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/TimeSeries.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*----------------------------------------------------------------
22
Raven Library Source Code
3-
Copyright (c) 2008-2025 the Raven Development Team
3+
Copyright (c) 2008-2026 the Raven Development Team
44
----------------------------------------------------------------*/
55
#include "TimeSeries.h"
66
#include "ParseLib.h"
@@ -834,7 +834,7 @@ CTimeSeries *CTimeSeries::Parse(CParser *p, bool is_pulse, string name, long lon
834834
bool step=false;
835835
if (Len >= 2) {
836836
if(!strcmp(s[1],"INTERPOLATE")){step=false;}
837-
if(!strcmp(s[1],"STEP" )){step=true;}
837+
if(!strcmp(s[1],"STEP" )){step=true;is_pulse=true;}
838838
}
839839

840840
int *days=new int [366]; //sized for max # of events
@@ -913,7 +913,7 @@ CTimeSeries *CTimeSeries::Parse(CParser *p, bool is_pulse, string name, long lon
913913
bool step=false;
914914
if (Len >= 3) {
915915
if(!strcmp(s[1],"INTERPOLATE")){step=false;}
916-
if(!strcmp(s[1],"STEP" )){step=true;}
916+
if(!strcmp(s[1],"STEP" )){step=true;is_pulse=true;}
917917
nEvents=s_to_i(s[2]);
918918
}
919919
else{

0 commit comments

Comments
 (0)