diff --git a/tupak/prior.py b/tupak/prior.py index 4546075d44ff6958d69629b2e552546c21511ab4..12f9f6a12dda556393114ac360357a1e96617493 100644 --- a/tupak/prior.py +++ b/tupak/prior.py @@ -327,7 +327,10 @@ class Interped(Prior): This maps to the inverse CDF. This is done using interpolation. """ Prior.test_valid_for_rescaling(val) - return self.inverse_cumulative_distribution(val) + rescaled = self.inverse_cumulative_distribution(val) + if rescaled.shape == (): + rescaled = float(rescaled) + return rescaled def __repr__(self): prior_name = self.__class__.__name__