I've run two history queries differing only in returnSize setting and have some issues with the return when returnSize is None.
Script
tagPath = 'path/to/singletag'
start = system.date.parse('2025-02-01 00:00:00')
end = system.date.parse('2025-05-30 00:00:00')
returnFormat = "Tall"
#returnFormat = "Wide"
history1 = system.tag.queryTagHistory(returnSize=-1, paths=hTagPaths, startDate=start, endDate=end, aggregationMode="Average", intervalHours=1, returnFormat=returnFormat, noInterpolation=True)
history2 = system.tag.queryTagHistory(paths=hTagPaths, startDate=start, endDate=end, aggregationMode="Average", intervalHours=1, returnFormat=returnFormat, noInterpolation=True)
These are part of the results, with history1 on the left (as stored data) and history2 on the right (non-interpolated hourly data):
(same hue = same value, the single bolder version is the value closest to the as stored timestamp)
The left table shows the data as it was stored and as it exists in the raw tables. So value "14" was recorded at 14 Feb 15:25 and the next value, 14.5, was recorded at 15 Feb 06:25.
I would expect then, in the hourly data in history2 with noInterpolation set to True, to see value 14 from 14 Feb 15:00 right through to 15 Feb 05:00 (i.e. the value 14 to be filled forward in time to the next data point). However, what I actually see is value 14 filled backwards in time.
Seems to be an issue in the trend as well (EasyChart):
The red line is (obviously) the easy chart pen and the yellow handdrawn is what it should be
(Unrelated note: these timestamps, like the Power Chart, are less than ideal)
You can see from the interpolated line trend that the digital version is incorrect:
If I set History Resolution Mode from Fixed to Raw then I get the expected results..
Am I missing something or is this a bug?