code: def iter_get_triggers(self):
          
          for i, gp in enumerate(self.groups):
              trigger = gp.trigger
              if trigger:
  
                  for j in range(trigger["trigger_events_nr"]):
                      trigger_info = {
                          "comment": trigger.comment,
                          "index": j,
                          "group": i,
                          "time": trigger[f"trigger_{j}_time"],
                          "pre_time": trigger[f"trigger_{j}_pretime"],
                          "post_time": trigger[f"trigger_{j}_posttime"],
                      }
                      yield trigger_info
docs: generator that yields triggers
  
          Returns
          -------
          trigger_info : dict
              trigger information with the following keys:
  
                  * comment : trigger comment
                  * time : trigger time
                  * pre_time : trigger pre time
                  * post_time : trigger post time
                  * index : trigger index
                  * group : data group index of trigger