code: def set_samplerate(self, rate):
          
  
          # Test and set value:
          float(rate)
          self.conconf.set_condition('samplerate', rate)
          if not self.no_auto:
              self.make_mask()
docs: Set sample rate to rate.
  
          rate: int or float
  
          rate is given as samples / timeunit. If sample rate is set, it
          will have an impact on the duration rule conditions. If duration
          is set to 2.5 and samplerate is 100, a duration of 250 records
          is required for the logical conditions to be true.
  
          .. note::
             Updates the mask if not no_auto.