-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'gwastro:master' into modular_stat
- Loading branch information
Showing
117 changed files
with
1,592 additions
and
898 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<!--- | ||
Please add a title which is a concise description of what you are doing, | ||
e.g. 'Fix bug with numpy import in pycbc_coinc_findtrigs' or 'add high frequency sky location dependent response for long detectors' | ||
---> | ||
|
||
<!--- | ||
This is a brief template for making pull requests for PyCBC. | ||
This is _not_ a proscriptive template - you can use a different style if you want. | ||
Please do think about the questions posed here and whether the details will be useful to include in your PR | ||
Please add sufficient details so that people looking back at the request with no context around the work | ||
can understand the changes. | ||
To choose reviewers, please look at the git blame for the code you are changing (if applicable), | ||
or discuss in the gwastro slack. | ||
Please add labels as appropriate | ||
--> | ||
|
||
- [ ] The author of this pull request confirms they will adhere to the [code of conduct](https://github.com/gwastro/pycbc/blob/master/CODE_OF_CONDUCT.md) | ||
|
||
## Standard information about the request | ||
|
||
<!--- Some basic info about the change (delete as appropriate) ---> | ||
This is a: bug fix, new feature, efficiency update, other (please describe) | ||
|
||
<!--- What codes will this affect? (delete as apropriate) | ||
If you do not know which areas will be affected, please ask in the gwastro #pycbc-code slack | ||
---> | ||
This change affects: the offline search, the live search, inference, PyGRB | ||
|
||
<!--- What code areas will this affect? (delete as apropriate) ---> | ||
This change changes: documentation, result presentation / plotting, scientific output | ||
|
||
<!--- Some things which help with code management (delete as appropriate) ---> | ||
This change: has appropriate unit tests, follows style guidelines (See e.g. [PEP8](https://peps.python.org/pep-0008/)), has been proposed using the [contribution guidelines](https://github.com/gwastro/pycbc/blob/master/CONTRIBUTING.md) | ||
|
||
<!--- Notes about the effect of this change ---> | ||
This change will: break current functionality, require additional dependencies, require a new release, other (please describe) | ||
|
||
## Motivation | ||
<!--- Describe why your changes are being made --> | ||
|
||
## Contents | ||
<!--- Describe your changes, this doesn't need to be a line-by-line code change discussion, | ||
but rather a general discussion of the methods chosen --> | ||
|
||
## Links to any issues or associated PRs | ||
<!--- If this is fixing / working around an already-reported issue, please link to it here ---> | ||
|
||
## Testing performed | ||
<!--- Describe tests for the code changes, either already performed or to be performed --> | ||
|
||
## Additional notes | ||
<!--- Anything which does not fit in the above sections --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,14 +26,16 @@ import argparse | |
import logging | ||
import numpy | ||
import h5py | ||
import matplotlib | ||
matplotlib.use('Agg') | ||
import pylab | ||
|
||
from ligo.lw import lsctables, utils as ligolw_utils | ||
|
||
import pycbc | ||
import pycbc.version | ||
from pycbc import tmpltbank, psd, strain | ||
from pycbc.io.ligolw import LIGOLWContentHandler | ||
import matplotlib | ||
matplotlib.use('Agg') | ||
import pylab | ||
|
||
|
||
__author__ = "Ian Harry <[email protected]>" | ||
|
@@ -48,8 +50,7 @@ parser = argparse.ArgumentParser(description=__doc__, | |
|
||
# Begin with code specific options | ||
parser.add_argument("--version", action="version", version=__version__) | ||
parser.add_argument("--verbose", action="store_true", default=False, | ||
help="verbose output") | ||
pycbc.add_common_pycbc_options(parser) | ||
parser.add_argument("--histogram-output-file", action="store", default=None, | ||
help="Output a histogram of fitting factors to the " | ||
"supplied file. If not given no histogram is produced.") | ||
|
@@ -111,11 +112,7 @@ pycbc.strain.insert_strain_option_group(parser) | |
|
||
opts = parser.parse_args() | ||
|
||
if opts.verbose: | ||
log_level = logging.DEBUG | ||
else: | ||
log_level = logging.WARN | ||
logging.basicConfig(format='%(asctime)s %(message)s', level=log_level) | ||
pycbc.init_logging(opts.verbose) | ||
|
||
# Sanity check options | ||
tmpltbank.verify_metric_calculation_options(opts, parser) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.