diff --git a/peyote/sampler.py b/peyote/sampler.py index 559b84a5e59d44de77b39e95b16b83ee9498a25e..36e32ef901baa45eaf701c64a87ae2ca8dad1bcc 100644 --- a/peyote/sampler.py +++ b/peyote/sampler.py @@ -167,13 +167,6 @@ class Sampler(object): draw = np.array([self.priors[key].sample() for key in self.__search_parameter_keys]) - if ('mass_1' in self.__search_parameter_keys) \ - and ('mass_2' in self.__search_parameter_keys): - i = [self.__search_parameter_keys.index('mass_1')] - j = [self.__search_parameter_keys.index('mass_2')] - if draw[j] > draw[i]: - draw[i], draw[j] = draw[j], draw[i] - if np.isinf(self.log_likelihood(draw)): logging.info('Prior draw {} has inf likelihood'.format(draw)) if np.isinf(self.log_prior(draw)):