Problem
The DateTime.addInterval method is used to increment the date/time. It may be called a specific number of times or be called in a loop to iterate over time. The addInterval method currently ignores the interval (precision) of IRREGULAR. If called in a loop, this could lead to an infinite loop. I changed the code in TSTool 15.2.0 to throw an exception for IRREGULAR and unrecognized interval. However, this causes ChangeInterval command tests to fail. I changed the code back so that IRREGULAR is ignored, but print a warning to the log file.
Actions
- Need to study the code more to decide how best to handle irregular time series.
Problem
The
DateTime.addIntervalmethod is used to increment the date/time. It may be called a specific number of times or be called in a loop to iterate over time. TheaddIntervalmethod currently ignores the interval (precision) ofIRREGULAR. If called in a loop, this could lead to an infinite loop. I changed the code in TSTool 15.2.0 to throw an exception forIRREGULARand unrecognized interval. However, this causesChangeIntervalcommand tests to fail. I changed the code back so thatIRREGULARis ignored, but print a warning to the log file.Actions