Skip to content
Snippets Groups Projects

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

Merged Moritz Huebner requested to merge fix_bug_from_new_cpnest_release into master

Due to a recent update of cpnest, the sampler tests are currently failing

self = <bilby.core.sampler.cpnest.Cpnest.run_sampler.<locals>.Model object at 0x7f84f8c31f50>
    def new_point(self):
        """Draw a point from the prior"""
        prior_samples = self.priors.sample()
        self._update_bounds()
        point = LivePoint(
            self.names, [prior_samples[name]
>                        for name in self.names])
E       TypeError: Argument 'd' has incorrect type (expected array.array, got list)
bilby/core/sampler/cpnest.py:92: TypeError

This MR fixes it.

Merge request reports

Pipeline #162662 passed

Pipeline passed for 74c2a20c on fix_bug_from_new_cpnest_release

Test coverage 71.00% (0.00%) from 1 job
Approval is optional

Merged by Moritz HuebnerMoritz Huebner 4 years ago (Oct 16, 2020 2:43am UTC)

Merge details

  • Changes merged into master with cd443619 (commits were squashed).
  • Deleted the source branch.

Pipeline #162932 passed

Pipeline passed for cd443619 on master

Test coverage 71.00% (0.00%) from 1 job

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading