code: def from_unit_cube(self, x):
          
          cosdec_min = np.cos(deg2rad*(90.0 + self.lower_bound.value))
          cosdec_max = np.cos(deg2rad*(90.0 + self.upper_bound.value))
  
          v = x * (cosdec_max - cosdec_min)
          v += cosdec_min
  
          v = np.clip(v, -1.0, 1.0)
          # Now this generates on [0,pi)
          dec = np.arccos(v)
  
          # convert to degrees
          dec = rad2deg * dec
          # now in range [-90,90.0)
          dec -= 90.0
  
          return dec
docs: Used by multinest
  
          :param x: 0 < x < 1
          :param lower_bound:
          :param upper_bound:
          :return: