system.kanoa.shift.getShiftCalendarEvents(paramsDict)
Returns the shift calendar event for the given parameters. It will combine an assets shifts with any inherited shifts if includeInherited is set to True
Parameters
paramsDict Dictionary
| - assetPath | String | |
| - endDate | DateTime | Required |
| - includeInherited | Boolean | |
| - includeSubAssets | Boolean | |
| - startDate | DateTime | Required |
| - tzOffsets | Dictionary | {'Pacific Standard Time': {startOffsetMins': 480, 'endOffSetMins': 480}} Can be passed in to improve performance |
Returns
shiftCalendarEvents pyDataset
Example
startDate = system.date.parse("2025-01-01 00:00:00")
endDate = system.date.parse("2025-01-07 00:00:00")
paramsDict = {'assetPath': 'Kanoa Industries\Adelaide Hills\Packaging\Line 1, 'startDate': startDate, 'endDate': endDate, 'includeInherited': True}
scheduleData = system.kanoa.shift.getShiftCalendarEvents(paramsDict)