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

Update pycbc_brute_bank to include option to cut wavelength and save … #4506

Merged
merged 12 commits into from
Oct 25, 2023

Conversation

kkacanja
Copy link
Contributor

…the lower frequency

bin/bank/pycbc_brute_bank Outdated Show resolved Hide resolved
@@ -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")
Copy link
Member

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).

bin/bank/pycbc_brute_bank Outdated Show resolved Hide resolved
bin/bank/pycbc_brute_bank Outdated Show resolved Hide resolved
@ahnitz ahnitz self-requested a review September 28, 2023 18:15
Still need to fix the completion percentage
@@ -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 ")
Copy link
Member

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.

@ahnitz
Copy link
Member

ahnitz commented Sep 29, 2023

@kkacanja Let me know when you want me to review this.

f_lower=self.f_lower, **kwds)
hp = ws[0]
hc = ws[1]
flow = numpy.arange(self.f_lower, 100, .1)[::-1]
Copy link
Member

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.

Copy link
Member

@ahnitz ahnitz left a 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.

@ahnitz
Copy link
Member

ahnitz commented Oct 24, 2023

@kkacanja In general, you should use a "rebase" rather than merging master into your code.

@kkacanja
Copy link
Contributor Author

@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.
Testing with file used before swapping two lines caused errors
Swapped two lines to be within the if statment
@ahnitz
Copy link
Member

ahnitz commented Oct 25, 2023

@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.

@ahnitz ahnitz merged commit 0f279ba into gwastro:master Oct 25, 2023
31 checks passed
PRAVEEN-mnl pushed a commit to PRAVEEN-mnl/pycbc that referenced this pull request Nov 3, 2023
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
maxtrevor pushed a commit to maxtrevor/pycbc that referenced this pull request Dec 11, 2023
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
bhooshan-gadre pushed a commit to bhooshan-gadre/pycbc that referenced this pull request Dec 19, 2023
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
bhooshan-gadre pushed a commit to bhooshan-gadre/pycbc that referenced this pull request Mar 4, 2024
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
lpathak97 pushed a commit to lpathak97/pycbc that referenced this pull request Mar 13, 2024
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
acorreia61201 pushed a commit to acorreia61201/pycbc that referenced this pull request Apr 4, 2024
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
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