code: def setBendField(self, x):
          
          if x != self.bend_field:
              self.bend_field = x
              self.refresh = True
docs: set bend magnetic field
  
          :param x: new bend field to be assigned, [T]
          :return: None