-
Notifications
You must be signed in to change notification settings - Fork 349
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
SNR optimizer option types #4650
Conversation
Fix issue in non-default settings for some options that Max complained about
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.
Just tested this change and it fixes the previous TypeError: can't multiply sequence by non-int of type 'float'
error. Happy to approve
Was that for the time window option or f-lower ? |
@tdent I can re-run the test again to find the exact error but I simply gave |
This is the full error:
So f_lower. |
Yup, f_lower gets multiplied whereas the window gets subtracted or added ;) |
For the CI, maybe related to the pegasus upgrade? Just for completeness, when applying the fix to f_lower and not chirp_time_window we get another error which is also fixed by this explicit type :)
|
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 we are improving the command line options, can we please change the verbosity option to use https://github.com/gwastro/pycbc/blob/master/pycbc/__init__.py#L69 ?
Max if you make a code suggestion (via the comment interface) we can accept it, although the verbose option is not related to this specific fix |
made the requested change myself, and somehow it seems to have gone through without needing to be accepted? |
Oh, yeah, github does let you edit someone else's PR just like that .. |
Remember to apply the right label to the PR, otherwise this risks not being deployed in the 2.1 release line. |
* SNR optimizer option types Fix issue in non-default settings for some options that Max complained about * Use standard verbosity argument --------- Co-authored-by: maxtrevor <65971534+maxtrevor@users.noreply.github.com>
* SNR optimizer option types Fix issue in non-default settings for some options that Max complained about * Use standard verbosity argument --------- Co-authored-by: maxtrevor <65971534+maxtrevor@users.noreply.github.com>
* SNR optimizer option types Fix issue in non-default settings for some options that Max complained about * Use standard verbosity argument --------- Co-authored-by: maxtrevor <65971534+maxtrevor@users.noreply.github.com>
* SNR optimizer option types Fix issue in non-default settings for some options that Max complained about * Use standard verbosity argument --------- Co-authored-by: maxtrevor <65971534+maxtrevor@users.noreply.github.com>
* SNR optimizer option types (#4650) * SNR optimizer option types Fix issue in non-default settings for some options that Max complained about * Use standard verbosity argument --------- Co-authored-by: maxtrevor <65971534+maxtrevor@users.noreply.github.com> * Need to use atol for isclose here (#4655) * Update how live fitting deals with invalid values (#4653) * Update how live fitting deals with invalid values * TDC comments * Tito's fixes * Add check for nan trigger fit values in the singles IFAR calculation * Properly fix ASD plot minimum value (#4671) * Properly fix ASD plot minimum value Rather than a hard coded minimum use the minimum value we are going to plot. Also put the calculation of the asd we are plotting on a single line rather than splitting over 2 * Fix bug and grid * ignore samples above minimum freq rather than above 0 * curr_psd does exist ! * specify an older branch of BBHx in tox.ini (#4672) (#4674) * specify an older branch of BBHx in tox.ini * Update tox.ini Co-authored-by: Shichao Wu <wushichao@mail.bnu.edu.cn> --------- Co-authored-by: Shichao Wu <wushichao@mail.bnu.edu.cn> * Modify logging in pycbc_optimize_snr to avoid dependencies * Add live singles significance fitting supervision script to github repo (#4687) * tidy up code before adding to github repo * log starting fitting script * Fix IndexError in PyCBC Live's followup code (#4676) * Draft fix for followup indexing error * Use a nonzero min required lookback, better variable names * Alex's comment on td_samples vs delta_f * Add docstring for `followup_event_significance` * Docstring fixes * Work on comments * Try to fix Sphinx error * Simplify definition of strain buffer length * Explicit kwarg name Co-authored-by: maxtrevor <65971534+maxtrevor@users.noreply.github.com> * Simplify `from_cli()` args * Fix error * Update example --------- Co-authored-by: maxtrevor <65971534+maxtrevor@users.noreply.github.com> * Supervision script typo (#4696) * increment version * Fix import broken by change in lscsoft-glue (#4662) * Drop lscsoft-glue dependency * Glue still needed, do not drop it! * Fix bug from scipy version changing (#4683) --------- Co-authored-by: Thomas Dent <thomas.dent@usc.es> Co-authored-by: Ian Harry <ian.harry@ligo.org> Co-authored-by: Gareth S Cabourn Davies <gareth.cabourndavies@ligo.org> Co-authored-by: Shichao Wu <wushichao@mail.bnu.edu.cn> Co-authored-by: Tito Dal Canton <tito.dalcanton@ijclab.in2p3.fr>
Fix issue in non-default settings for some options that Max complained about