Skip to content
Snippets Groups Projects
Commit a8081f1d authored by Colm Talbot's avatar Colm Talbot
Browse files

fix rescaling of floats in interpolated prior.

parent 7f47d2df
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -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__
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment