Skip to content
Snippets Groups Projects
Commit cd443619 authored by Moritz Huebner's avatar Moritz Huebner
Browse files

Merge branch 'fix_bug_from_new_cpnest_release' into 'master'

Now passes an array.array object in the Cpnest livepoint constructor

See merge request lscsoft/bilby!888
parents c9415ae3 74c2a20c
No related branches found
No related tags found
1 merge request!888Now passes an array.array object in the Cpnest livepoint constructor
Pipeline #162932 passed
from __future__ import absolute_import from __future__ import absolute_import
import array
import copy import copy
import numpy as np import numpy as np
...@@ -88,8 +89,8 @@ class Cpnest(NestedSampler): ...@@ -88,8 +89,8 @@ class Cpnest(NestedSampler):
prior_samples = self.priors.sample() prior_samples = self.priors.sample()
self._update_bounds() self._update_bounds()
point = LivePoint( point = LivePoint(
self.names, [prior_samples[name] self.names, array.array(
for name in self.names]) 'f', [prior_samples[name] for name in self.names]))
return point return point
self._resolve_proposal_functions() self._resolve_proposal_functions()
......
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