Skip to content

NOS-T Tools v3.0.9

Choose a tag to compare

@emmanuelgonz emmanuelgonz released this 08 Mar 04:32
· 74 commits to main since this release
97f5549

Changed:

  • ScenarioTimeIntervalCallback Initial Offset (observer.py): Added optional time_init parameter to ScenarioTimeIntervalCallback to decouple the initial trigger offset from the repeating interval:
    • Previously, the initial offset and repeating interval were always the same value, causing cumulative drift when the interval was not exactly 24 hours (e.g., timedelta(hours=23, minutes=55) drifted 5 minutes earlier each day)
    • New time_init parameter sets the offset for the first trigger independently from time_interval
    • When omitted, defaults to time_interval (backward compatible)
    • Example: ScenarioTimeIntervalCallback(callback, timedelta(days=1), time_init=timedelta(hours=23, minutes=55)) fires at 23:55 daily without drift

Full Changelog: v3.0.8...v3.0.9