-
Notifications
You must be signed in to change notification settings - Fork 356
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
Update pycbc_brute_bank to include option to cut wavelength and save … #4506
Conversation
bin/bank/pycbc_brute_bank
Outdated
@@ -45,6 +45,8 @@ parser.add_argument('--approximant', required=True, | |||
parser.add_argument('--minimal-match', default=0.97, type=float) | |||
parser.add_argument('--buffer-length', default=2, type=float, | |||
help='size of waveform buffer in seconds') | |||
parser.add_argument('--cut-wavelength', type=bool, | |||
help="Option to cut the wavelength") |
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.
More direct help message
The maximum length of a template in seconds
The option should take an argument (the maximum length).
Still need to fix the completion percentage
bin/bank/pycbc_brute_bank
Outdated
@@ -46,7 +46,9 @@ parser.add_argument('--minimal-match', default=0.97, type=float) | |||
parser.add_argument('--buffer-length', default=2, type=float, | |||
help='size of waveform buffer in seconds') | |||
parser.add_argument('--cut-wavelength', type=bool, | |||
help="Option to cut the wavelength") | |||
help="When enabled, the program will adjust the wavelength to fit the specified length in max-signal-length ") |
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.
We could probably combine these two options, so if max-signal-length isn't given, it doesn't impose any cut.
@kkacanja Let me know when you want me to review this. |
Debugged test example
bin/bank/pycbc_brute_bank
Outdated
f_lower=self.f_lower, **kwds) | ||
hp = ws[0] | ||
hc = ws[1] | ||
flow = numpy.arange(self.f_lower, 100, .1)[::-1] |
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.
This line and the next should probably be within the if statement.
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.
@kkacanja Besides for the minor comment which should be straightforward to address, I think this is ready to merge.
@kkacanja In general, you should use a "rebase" rather than merging master into your code. |
Thank you, I am unfamiliar with rebasing so I will do that now. |
Condor installation is not working properly for the checks after I changed two lines.
Swapped two lines to be within the if statment
@kkacanja Some of the tests are fragile to network outages. So for example, if data can't be retrieved when it tries. You have to take a look at the message to see if it looks like this is the case when you see a failure (or if the error seems related to your PR). If it's the former, there should be a button you can click to restart any failed jobs and have them try again. If not, we can walk through this together tomorrow and make sure you have the right permissions set up. |
gwastro#4506) * Update pycbc_brute_bank to include option to cut wavelength and save the lower frequency * Removed Logging * Update pycbc_brute_bank Still need to fix the completion percentage * Update pycbc_brute_bank * Update pycbc_brute_bank * Update pycbc_brute_bank Debugged test example * Update pycbc_brute_bank * Update pycbc_brute_bank * Testing Condor Condor installation is not working properly for the checks after I changed two lines. * Testing Testing with file used before swapping two lines caused errors * Update pycbc_brute_bank Swapped two lines to be within the if statment
gwastro#4506) * Update pycbc_brute_bank to include option to cut wavelength and save the lower frequency * Removed Logging * Update pycbc_brute_bank Still need to fix the completion percentage * Update pycbc_brute_bank * Update pycbc_brute_bank * Update pycbc_brute_bank Debugged test example * Update pycbc_brute_bank * Update pycbc_brute_bank * Testing Condor Condor installation is not working properly for the checks after I changed two lines. * Testing Testing with file used before swapping two lines caused errors * Update pycbc_brute_bank Swapped two lines to be within the if statment
gwastro#4506) * Update pycbc_brute_bank to include option to cut wavelength and save the lower frequency * Removed Logging * Update pycbc_brute_bank Still need to fix the completion percentage * Update pycbc_brute_bank * Update pycbc_brute_bank * Update pycbc_brute_bank Debugged test example * Update pycbc_brute_bank * Update pycbc_brute_bank * Testing Condor Condor installation is not working properly for the checks after I changed two lines. * Testing Testing with file used before swapping two lines caused errors * Update pycbc_brute_bank Swapped two lines to be within the if statment
gwastro#4506) * Update pycbc_brute_bank to include option to cut wavelength and save the lower frequency * Removed Logging * Update pycbc_brute_bank Still need to fix the completion percentage * Update pycbc_brute_bank * Update pycbc_brute_bank * Update pycbc_brute_bank Debugged test example * Update pycbc_brute_bank * Update pycbc_brute_bank * Testing Condor Condor installation is not working properly for the checks after I changed two lines. * Testing Testing with file used before swapping two lines caused errors * Update pycbc_brute_bank Swapped two lines to be within the if statment
gwastro#4506) * Update pycbc_brute_bank to include option to cut wavelength and save the lower frequency * Removed Logging * Update pycbc_brute_bank Still need to fix the completion percentage * Update pycbc_brute_bank * Update pycbc_brute_bank * Update pycbc_brute_bank Debugged test example * Update pycbc_brute_bank * Update pycbc_brute_bank * Testing Condor Condor installation is not working properly for the checks after I changed two lines. * Testing Testing with file used before swapping two lines caused errors * Update pycbc_brute_bank Swapped two lines to be within the if statment
gwastro#4506) * Update pycbc_brute_bank to include option to cut wavelength and save the lower frequency * Removed Logging * Update pycbc_brute_bank Still need to fix the completion percentage * Update pycbc_brute_bank * Update pycbc_brute_bank * Update pycbc_brute_bank Debugged test example * Update pycbc_brute_bank * Update pycbc_brute_bank * Testing Condor Condor installation is not working properly for the checks after I changed two lines. * Testing Testing with file used before swapping two lines caused errors * Update pycbc_brute_bank Swapped two lines to be within the if statment
…the lower frequency