class_docstr: Proxy for ClockedSamplers.
docstr: Adjust proposal scale, but not above maxlength.
docstr_tok: ["Adjust","proposal","scale",",","but","not","above","maxlength","."]
code: def adjust_scale(self, maxlength):
      """Adjust proposal scale, but not above maxlength."""
      log = self.log
      if log:
          print(
              "%2d | %2d %2d %2d | %f"
              % (
                  self.nrestarts,
                  self.naccepts,
                  self.nrejects,
                  self.nreflections,
                  self.scale,
              )
          )
      self.logstat.append(
          [self.naccepts / (self.naccepts + self.nrejects), self.scale]
      )
  
      if self.naccepts < (self.nrejects + self.naccepts) * self.balance:
          if log:
              print("adjusting scale %f down" % self.scale)
          self.scale /= self.nudge
      else:
          if self.scale < maxlength or True:
              if log:
                  print("adjusting scale %f up" % self.scale)
              self.scale *= self.nudge
      assert self.scale > 1e-10, self.scale
  
imports: import numpy
  import matplotlib.pyplot
  from ultranest.samplingpath import SamplingPath, ContourSamplingPath, extrapolate_ahead
  from ultranest.stepsampler import StepSampler
  from ultranest.stepsampler import generate_region_oriented_direction, generate_region_random_direction, generate_random_direction
  from ultranest.flatnuts import ClockedStepSampler, ClockedBisectSampler, ClockedNUTSSampler
  from ultranest.flatnuts import SingleJumper, DirectJumper, IntervalJumper
label_desc: Use image node_id 4 for calling the OtherSamplerProxy obj's underlying member method code with example usage: obj.adjust_scale(maxlength) without return types