def split(self, new_index):
        """Create a new event which is a copy of this one but with a new index.
        """
        new_event = Event(new_index, self.user_data)
        new_event.time = self.time
        new_event.step_size = self.step_size
        return new_event
def split ( self , new_index ) : new_event = Event ( new_index , self . user_data ) new_event . time = self . time new_event . step_size = self . step_size return new_event
Create a new event which is a copy of this one but with a new index.