Skip to content

Add ObsBlock split function

Benoit Seignovert requested to merge add-obs-block-split into main

Closes #7 (closed)

  • Add .split() to any windows elements (eg. ObsBlock):
# ElementWindow
w1, w2 = window.split('2032-01-01T12:00:00')

# ObsBlock
obs_1, obs_2 = obs.split('2015-01-01T19:30:00', gap='10 mins', ref='center')

# the slit can also be performed at the timeline level
timeline[1].split('2032-07-03T12', gap='2h', ref='center')
  • It is now possible to duplicate an element object with a deep-copy of the element:
new_element = element.copy()

Merge request reports