Skip to content
Snippets Groups Projects

Fix DirichletElement pickle

Fix a pickle error when trying to pickle DirichletElement or DirichletPriorDict. This just requires setting __qualname__ to match __name__.

Error

_pickle.PicklingError: Can't pickle <class 'bilby.core.prior.conditional.ConditionalBeta'>: it's not the same object as bilby.core.prior.conditional.ConditionalBeta

Merge request reports

Pipeline #588193 passed

Pipeline passed for 7ac6a349 on michael.williams:fix-dirichlet-element-pickle

Test coverage 69.00% (0.00%) from 1 job
Approved by

Merged by Colm TalbotColm Talbot 1 year ago (Jan 8, 2024 6:01pm UTC)

Merge details

  • Changes merged into master with f8b004a8 (commits were squashed).
  • Did not delete the source branch.

Pipeline #597469 failed

Pipeline failed for f8b004a8 on master

Test coverage 69.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