HistoryFill
The histhelper library and its HistoryFill class are designed to make it easy to get ARDI drivers to behave in the expected fashion.
Instead of writing directly to the query, you instead write all of the data you extract from the data source to an instance of the HistoryFill.
This will then handle edge-filling, upscaling, downscaling and trimming as appropriate to ensure your data works the way that ARDI requires.
Basic Workflow
A driver will usually follow the following steps when using HistoryFill.
- Split your properties into discrete and analogue values using SpitAddresses
- (Optional) Load the pre-query values with SetInitialValue,
- Write individual historical values with RecordDiscrete and RecordAnalogue.
- (Optional) Refine the data with Autosample, Upsample or Downsample, if the data source doesn't do it natively,
- (Optional) Call MissingItems and Backfill on any points without data,
- Call Finish to write the values to ARDI.