Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created sampler() method within NestedController #1313

Closed
wants to merge 1 commit into from

Conversation

ben18785
Copy link
Collaborator

@ben18785 ben18785 commented Mar 4, 2021

  • created new getter
  • used getter in notebooks and test files

Addresses #1312

- created new getter
- used getter in notebooks and test files
@ben18785 ben18785 requested a review from rccreswell March 4, 2021 14:29
@codecov
Copy link

codecov bot commented Mar 4, 2021

Codecov Report

Merging #1313 (fc8564e) into master (67c841e) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #1313   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           87        87           
  Lines         8932      8934    +2     
=========================================
+ Hits          8932      8934    +2     
Impacted Files Coverage Δ
pints/_nested/__init__.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 67c841e...fc8564e. Read the comment docs.

@@ -667,6 +667,10 @@ def run(self):

return self._m_posterior_samples

def sampler(self):
""" Returns sampler used by the controller. """
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think of including this specific comment, which is similar to the sampler() docstring on MCMC controller?

Suggested change
""" Returns sampler used by the controller. """
"""Returns the underlying :class:`NestedSampler` object."""

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I'll incorporate this into my new PR about multinest.

@ben18785
Copy link
Collaborator Author

Closing as out of date due to #1034

@ben18785 ben18785 closed this Mar 13, 2021
@MichaelClerx MichaelClerx deleted the i1312-nested-controller-sampler-method branch August 17, 2021 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants