Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

Revert "Add calibration uncertainty model" #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ahnitz
Copy link
Member

@ahnitz ahnitz commented Jul 20, 2018

Reverts #54

Thanks for the work here @ColmTalbot. One minor niggle is that the recalibration function should live in the pycbc.strain package. There is a similarly implemented physical model there already.

https://github.com/gwastro/pycbc/blob/master/pycbc/strain/recalibrate.py

For now we should revert, split up, and then reapply.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 228

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.9%) to 40.648%

Totals Coverage Status
Change from base Build 218: -0.9%
Covered Lines: 1067
Relevant Lines: 2625

💛 - Coveralls

@ahnitz
Copy link
Member Author

ahnitz commented Jul 20, 2018

@ColmTalbot To expand a bit. PyCBC already has a package designed to condition and handle strain. Recalibration is conceptually squarely in that wheelhouse and in fact there is already an implementation of a physical model there which this PR imitates the interface of. The fact that we do want to do studies (and have done so in the past) for calibration on waveforms and searches indicates that this also should be in the core package, not the PE-only one. Even the ability to do a simply jupyter notebook with recalibrated data and / or waveform indicates this should be accessible in the core package.

I think the right path forward here is to revert this commit, and then add it as another option to the strain function which selects the calibration model. At the moment, this patch breaks existing functionality to call the physical calibration model, but it should be possible to do both. A good option would be to add this function to pycbc/strain/recalibrate alongside the physical model.

Copy link
Contributor

@cmbiwer cmbiwer left a comment

Choose a reason for hiding this comment

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

I agree with Alex. The calibration is used much more widely than just parameter estimation. I think it should be access through pycbc.strain as well, and support the reversion of this commit.

But this is nice work and look forward to it being available!

@cdcapano
Copy link
Collaborator

I talked to @ColmTalbot and @cplb, and they're ok moving the recalibration module to the strain module in pycbc. However, rather than reverting, I'd prefer that that be done in the following order: a commit to pycbc/strain/recalibration is made adding the spline calibration to that; then a commit is made to only remove the redundant calibration code in gwin. I don't want to revert this because there are other useful things in this commit. I'll keep this PR open in the mean time with a "WIP" tag until that is completed.

@ahnitz
Copy link
Member Author

ahnitz commented Jul 20, 2018 via email

@cdcapano
Copy link
Collaborator

No, I don't like reverts, and it'll make it harder to make sure the docs, example config file, etc. are put back.

@ahnitz
Copy link
Member Author

ahnitz commented Jul 20, 2018 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants