{"action":"created","issue":{"url":"https://api.github.com/repos/ligo-cbc/pycbc/issues/1311","repository_url":"https://api.github.com/repos/ligo-cbc/pycbc","labels_url":"https://api.github.com/repos/ligo-cbc/pycbc/issues/1311/labels{/name}","comments_url":"https://api.github.com/repos/ligo-cbc/pycbc/issues/1311/comments","events_url":"https://api.github.com/repos/ligo-cbc/pycbc/issues/1311/events","html_url":"https://github.com/ligo-cbc/pycbc/issues/1311","id":193209367,"number":1311,"title":"Segment-related error from pycbc_single_template","user":{"login":"titodalcanton","id":11317236,"avatar_url":"https://avatars.githubusercontent.com/u/11317236?v=3","gravatar_id":"","url":"https://api.github.com/users/titodalcanton","html_url":"https://github.com/titodalcanton","followers_url":"https://api.github.com/users/titodalcanton/followers","following_url":"https://api.github.com/users/titodalcanton/following{/other_user}","gists_url":"https://api.github.com/users/titodalcanton/gists{/gist_id}","starred_url":"https://api.github.com/users/titodalcanton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/titodalcanton/subscriptions","organizations_url":"https://api.github.com/users/titodalcanton/orgs","repos_url":"https://api.github.com/users/titodalcanton/repos","events_url":"https://api.github.com/users/titodalcanton/events{/privacy}","received_events_url":"https://api.github.com/users/titodalcanton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"tdent","id":3316412,"avatar_url":"https://avatars.githubusercontent.com/u/3316412?v=3","gravatar_id":"","url":"https://api.github.com/users/tdent","html_url":"https://github.com/tdent","followers_url":"https://api.github.com/users/tdent/followers","following_url":"https://api.github.com/users/tdent/following{/other_user}","gists_url":"https://api.github.com/users/tdent/gists{/gist_id}","starred_url":"https://api.github.com/users/tdent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdent/subscriptions","organizations_url":"https://api.github.com/users/tdent/orgs","repos_url":"https://api.github.com/users/tdent/repos","events_url":"https://api.github.com/users/tdent/events{/privacy}","received_events_url":"https://api.github.com/users/tdent/received_events","type":"User","site_admin":false},"assignees":[{"login":"tdent","id":3316412,"avatar_url":"https://avatars.githubusercontent.com/u/3316412?v=3","gravatar_id":"","url":"https://api.github.com/users/tdent","html_url":"https://github.com/tdent","followers_url":"https://api.github.com/users/tdent/followers","following_url":"https://api.github.com/users/tdent/following{/other_user}","gists_url":"https://api.github.com/users/tdent/gists{/gist_id}","starred_url":"https://api.github.com/users/tdent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdent/subscriptions","organizations_url":"https://api.github.com/users/tdent/orgs","repos_url":"https://api.github.com/users/tdent/repos","events_url":"https://api.github.com/users/tdent/events{/privacy}","received_events_url":"https://api.github.com/users/tdent/received_events","type":"User","site_admin":false},{"login":"spxiwh","id":11438929,"avatar_url":"https://avatars.githubusercontent.com/u/11438929?v=3","gravatar_id":"","url":"https://api.github.com/users/spxiwh","html_url":"https://github.com/spxiwh","followers_url":"https://api.github.com/users/spxiwh/followers","following_url":"https://api.github.com/users/spxiwh/following{/other_user}","gists_url":"https://api.github.com/users/spxiwh/gists{/gist_id}","starred_url":"https://api.github.com/users/spxiwh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spxiwh/subscriptions","organizations_url":"https://api.github.com/users/spxiwh/orgs","repos_url":"https://api.github.com/users/spxiwh/repos","events_url":"https://api.github.com/users/spxiwh/events{/privacy}","received_events_url":"https://api.github.com/users/spxiwh/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/ligo-cbc/pycbc/milestones/25","html_url":"https://github.com/ligo-cbc/pycbc/milestones/PyCBC%201.6.1%20release","labels_url":"https://api.github.com/repos/ligo-cbc/pycbc/milestones/25/labels","id":2166607,"number":25,"title":"PyCBC 1.6.1 release","description":"First O2 bug fix release.","creator":{"login":"duncan-brown","id":11262902,"avatar_url":"https://avatars.githubusercontent.com/u/11262902?v=3","gravatar_id":"","url":"https://api.github.com/users/duncan-brown","html_url":"https://github.com/duncan-brown","followers_url":"https://api.github.com/users/duncan-brown/followers","following_url":"https://api.github.com/users/duncan-brown/following{/other_user}","gists_url":"https://api.github.com/users/duncan-brown/gists{/gist_id}","starred_url":"https://api.github.com/users/duncan-brown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncan-brown/subscriptions","organizations_url":"https://api.github.com/users/duncan-brown/orgs","repos_url":"https://api.github.com/users/duncan-brown/repos","events_url":"https://api.github.com/users/duncan-brown/events{/privacy}","received_events_url":"https://api.github.com/users/duncan-brown/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":2,"state":"open","created_at":"2016-11-30T15:43:35Z","updated_at":"2016-12-02T21:16:51Z","due_on":"2016-12-10T00:00:00Z","closed_at":null},"comments":10,"created_at":"2016-12-02T20:23:04Z","updated_at":"2016-12-02T21:40:51Z","closed_at":null,"body":"Tom's run with the latest hyperbank [1] failed on pycbc_single_template followups for some IMBH injections. Here's one of the failing commands:\r\n\r\n```\r\ncd /home/tdent/ER10/analysis/banks_background/er10_hyperbank_0p6fp/output\r\npycbc_single_template  --segment-length 512 --segment-start-pad 144 --segment-end-pad 16 --psd-estimation median --psd-segment-length 16 --psd-segment-stride 8 --psd-inverse-length 16 --chisq-bins \"0.6*get_freq('fSEOBNRv4Peak',params.mass1,params.mass2,params.spin1z,params.spin2z)**(2./3.)\" --low-frequency-cutoff 20. --approximant 'SPAtmplt:mtotal<4' 'SEOBNRv4_ROM:else' --order -1 --processing-scheme mkl --window 10 --psd-num-segments 63 --taper-data 1 --allow-zero-padding  --autogating-threshold 100 --autogating-cluster 0.5 --autogating-width 0.25 --autogating-taper 0.25 --autogating-pad 16 --strain-high-pass 15. --sample-rate 2048 --pad-data 8 --injection-scale-factor 1000000 --frame-type H1_HOFT_C00 --channel-name H1:GDS-CALIB_STRAIN --use-params-of-closest-injection --trigger-time 1163059633.716048 --inspiral-segments  results/1._analysis_time/1.01_segment_data/H1L1-INSP_SEGMENTS-1161961217-1242000.xml  --injection-file  inj_files/H1L1-STRIP_INJECTIONS_IMBHB_INJ-1161961217-1242000.xml  --data-read-name DATA_ANALYSED --data-analyzed-name TRIGGERS_GENERATED --output-file  ~/H1-SINGLE_TEMPLATE_P1_INJ_PARAMS_NOINJ_5-1161961217-1242000.hdf --verbose\r\n```\r\n\r\nAnd the error:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/home/tito/sw_install/pycbc_latest//bin/pycbc_single_template\", line 4, in <module>\r\n    __import__('pkg_resources').run_script('PyCBC==e2c46f', 'pycbc_single_template')\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 534, in run_script\r\n    self.require(requires)[0].run_script(script_name, ns)\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources.py\", line 1438, in run_script\r\n    execfile(script_filename, namespace, namespace)\r\n  File \"/home/tito/sw_install/pycbc_latest/lib/python2.7/site-packages/PyCBC-e2c46f-py2.7.egg/EGG-INFO/scripts/pycbc_single_template\", line 203, in <module>\r\n    strain_segments = strain.StrainSegments.from_cli(opt, gwstrain)\r\n  File \"/home/tito/sw_install/pycbc_latest/lib/python2.7/site-packages/PyCBC-e2c46f-py2.7.egg/pycbc/strain.py\", line 962, in from_cli\r\n    allow_zero_padding=opt.allow_zero_padding)\r\n  File \"/home/tito/sw_install/pycbc_latest/lib/python2.7/site-packages/PyCBC-e2c46f-py2.7.egg/pycbc/strain.py\", line 827, in __init__\r\n    raise ValueError(err_msg)\r\nValueError: Trigger end time must be within analysable window. Asked to end at 1163059832 but can only analyse to 1163059831.\r\n```\r\n\r\nThe inspiral segments file contains two DATA_ANALYSED segments compatible with the --trigger-time, differing only by one second at the end: (1163059103.0, 1163059839.0) and (1163059103.0, 1163059840.0). In pycbc_single_template, select_segments() chooses the shorter one, which then leads to the error when trying to segment the data.\r\n\r\nI'm not sure whether this is a bug in the inspiral segments or in select_segments() (or neither), but I'm opening this to document what I found.\r\n\r\n[1] https://www.atlas.aei.uni-hannover.de/~tdent/LSC/er10/tuning/preh1_vlfc_thorne_0p6fp/5._injections/5.14_followup_of_missed_IMBHB_INJ/"},"comment":{"url":"https://api.github.com/repos/ligo-cbc/pycbc/issues/comments/264569847","html_url":"https://github.com/ligo-cbc/pycbc/issues/1311#issuecomment-264569847","issue_url":"https://api.github.com/repos/ligo-cbc/pycbc/issues/1311","id":264569847,"user":{"login":"titodalcanton","id":11317236,"avatar_url":"https://avatars.githubusercontent.com/u/11317236?v=3","gravatar_id":"","url":"https://api.github.com/users/titodalcanton","html_url":"https://github.com/titodalcanton","followers_url":"https://api.github.com/users/titodalcanton/followers","following_url":"https://api.github.com/users/titodalcanton/following{/other_user}","gists_url":"https://api.github.com/users/titodalcanton/gists{/gist_id}","starred_url":"https://api.github.com/users/titodalcanton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/titodalcanton/subscriptions","organizations_url":"https://api.github.com/users/titodalcanton/orgs","repos_url":"https://api.github.com/users/titodalcanton/repos","events_url":"https://api.github.com/users/titodalcanton/events{/privacy}","received_events_url":"https://api.github.com/users/titodalcanton/received_events","type":"User","site_admin":false},"created_at":"2016-12-02T21:40:51Z","updated_at":"2016-12-02T21:40:51Z","body":"From the daily page https://ldas-jobs.ligo-wa.caltech.edu/~detchar/summary/day/20161113/ I see that indeed there is such a segment of H1:DMT-ANALYSIS_READY:1,\r\n```\r\n1\t1163059103.0\t1163059840.0\t737.0\r\n```\r\nFrom Tom's H1L1-INSP_SEGMENTS-1161961217-1242000.xml I see\r\n```\r\nsegment_definer:segment_def_id:2 1163059103 1163059839\r\nsegment_definer:segment_def_id:2 1163059103 1163059840\r\n```\r\nwhere seg def 2 corresponds to H1's DATA_ANALYSED."}}
{"actor":{"display_login":"titodalcanton"}}