code: def return_markers(self):
          
          markers = []
  
          triggers = self._triggers
          DTYPE_MAX = iinfo(triggers.dtype['sample']).max
          triggers = triggers[triggers['sample'] != DTYPE_MAX]
  
          for trig in triggers:
              markers.append(
                  {'name': str(trig['code']),
                   'start': trig['sample'] / self._s_freq,
                   'end': trig['sample'] / self._s_freq,
                   })
  
          return markers
docs: Return all the markers (also called triggers or events).
  
          Returns
          -------
          list of dict
              where each dict contains 'name' as str, 'start' and 'end' as float
              in seconds from the start of the recordings, and 'chan' as list of
              str with the channels involved (if not of relevance, it's None).
  
          Raises
          ------
          FileNotFoundError
              when it cannot read the events for some reason (don't use other
              exceptions).