Generating injections from list of possible parameter values
Adding a ChoicePrior
that randomly samples from a list of possible injection values (say with np.random.choice
). This is to avoid generating a bias when resampling due to a constraint on a parameter (see issue 121). This can also be used in situations where we have a list of possible parameter values (say from a simulation) that we want to use for generating injections for population inference studies.