code: def clear_measurements(self):
          
          keys = list(self.measurements.keys())
          for key in keys:
              del(self.measurements[key])
          self.meas_counter = -1
docs: Remove all measurements from self.measurements. Reset the
          measurement counter. All ID are invalidated.