-
Notifications
You must be signed in to change notification settings - Fork 26
Conversation
Hello @cdcapano! Thanks for updating the PR. Cheers ! There are no PEP8 issues in this Pull Request. 🍻 Comment last updated on June 06, 2018 at 14:37 Hours UTC |
2e8f709
to
ce5b911
Compare
@duncanmmacleod That "pep8 speaks" thing is going to make PRs difficult to read. Is there any information in there that's not in code climate? If not, can we quiet that? |
Yeah, I agree with Collin on this. It's going to be a mess if it is adding
comments.
…On Wed, Apr 11, 2018, 12:08 Collin Capano ***@***.***> wrote:
@duncanmmacleod <https://github.com/duncanmmacleod> That "pep8 speaks"
thing is going to make PRs difficult to read. Is there any information in
there that's not in code climate? If not, can we quiet that?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#17 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACGrRqOjTkSEOHjQ6vSxiD_ocLwcA2NKks5tndY0gaJpZM4TPuos>
.
|
53265c4
to
09edc75
Compare
09edc75
to
52b6d22
Compare
Pull Request Test Coverage Report for Build 119
💛 - Coveralls |
Ok, I think this is ready for review now. |
3c872c4
to
1aaba9b
Compare
gwin/likelihood.py
Outdated
def _call_global_likelihood(*args, **kwds): | ||
return _global_instance(*args, **kwds) # pylint:disable=not-callable | ||
|
||
|
||
# XXX: import the following from pycbc.distributions once PR #2123 has made |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR #2123 has been merged into the latest release, so we could just import it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vivienr Done. @duncanmmacleod Since this requires the latest release of pycbc, I've added version requirements for pycbc to setup.py
and requirements.txt
.
|
||
In this case, the :py:class:`gwin.likelihood.GaussianLikelihood` would be used. | ||
Examples of using this likelihood class on a BBH injection and on GW150914 are | ||
given below. Any name that starts with ``test_`` is an analytic test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While not really within this PR, we could add here an example on how to use simulated noise?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The BBH example is on simulated noise. See lines 396 and 397 of gwin.rst
.
Hey, sorry. I don't have a problem with this PR. But I'll leave it unreviewed by me since I see Vivien has some comments/review. |
@vivienr Ok, I think I addressed all of the issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks !
Have likelihood evaluator class be initialized from the config file. This also moves waveform generation set up into the
LikelihoodEvaluator
'sfrom_config
function. This is the first step to moving the sampler initialization parameters into the config file, to eventually allow for more sampling engines.The only change to the ini file is you now need:
in the config file, and the
likelihood
option is removed fromgwin
. This will also allow for specifying parameters for the likelihood class in the config file. For instance, you will be able to specify the mean and covariance for thetest_normal
likelihood class.I've also added a
DataBasedLikelihoodEvaluator
class to make the separation between the analytic likelihoods and the likelihoods that use data / a waveform generator cleaner.I'm not crazy about the names of the classes (never really did like
LikelihoodEvaluator
), and I know this has caused some people confusion. Suggestions for better class names are welcome.Marking as work in progress, as still have to finish and test. Also, #14 should be merged first; then I'll update this patch accordingly.