code: def __init__(self, x_dim, minimum, maximum):
      if not hasattr(minimum, "__len__"):
          self.minimum = np.array([minimum] * x_dim)
      else:
          assert len(minimum) == x_dim
          self.minimum = np.array(minimum)
      if not hasattr(maximum, "__len__"):
          self.maximum = np.array([maximum] * x_dim)
      else:
          assert len(maximum) == x_dim
          self.maximum = np.array(maximum)
      super(UniformPrior, self).__init__(x_dim)
  
file_path: nnest/nnest/priors.py
imports: import numpy
label_desc: Use image node_id 1 to create a new UniformPrior object from inherited base classes: Prior with example: obj = UniformPrior(x_dim, minimum, maximum)