Skip to main content

system.kanoa.schedule.getScheduledEventDurations

Description

Used in Reliability analysis to compare the amount of time modes were scheduled for compared to how long they were actually in that mode.

Syntax

getScheduledEventDurations(assetPath, rangeStart, rangeEnd)
  • Parameters
      assetPath (string) - Path of the asset.
      rangeStart (datetime) - Start of the range.
      rangeEnd (datetime) - End of the range.
  • Returns
      Schedule data (dataset).
  • Code Examples

    # Example Usage:
    asset_path = 'Kanoa Industries\Adelaide Hills\Packaging\Line 1'
    range_start = ...
    range_end = ...
    schedule_data = system.kanoa.schedule.getScheduledEventDurations(asset_path, range_start, range_end)