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

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

parent c9415ae3
No related branches found
No related tags found
No related merge requests found
from __future__ import absolute_import
import array
import copy
import numpy as np
......@@ -88,8 +89,8 @@ class Cpnest(NestedSampler):
prior_samples = self.priors.sample()
self._update_bounds()
point = LivePoint(
self.names, [prior_samples[name]
for name in self.names])
self.names, array.array(
'f', [prior_samples[name] for name in self.names]))
return point
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