Skip to content
  • Koh Ueno's avatar
    delete the cvs_entry_time argument used in gstlal-ugly/bin/gstlal_injsplitter · d03f5db0
    Koh Ueno authored
    I encountered the following error when I ran gstlal_injsplitter and (Kipp) found that cvs_entry_time, in which the time when the program was generated is supposed to be substituted, was not used correctly.
    
    Traceback (most recent call last):
      File "/home/koh.ueno/local/bin/gstlal_injsplitter", line 83, in <module>
        cvs_entry_time=strftime('%Y/%m/%d %H:%M:%S'))
      File "/usr/lib64/python2.7/site-packages/ligo/lw/utils/process.py", line 109, in register_to_xmldoc
        process = proctable.RowType.initialized(program = program, process_id = proctable.get_next_id(), **kwargs)
      File "/usr/lib64/python2.7/site-packages/ligo/lw/lsctables.py", line 562, in initialized
        cvs_entry_time = lal.UTCToGPS(time.strptime(cvs_entry_time, "%Y-%m-%d %H:%M:%S +0000")) if cvs_entry_time is not None else None,
      File "/usr/lib64/python2.7/_strptime.py", line 467, in _strptime_time
        return _strptime(data_string, format)[0]
      File "/usr/lib64/python2.7/_strptime.py", line 325, in _strptime
        (data_string, format))
    ValueError: time data '2021/04/01 07:11:30' does not match format '%Y-%m-%d %H:%M:%S +0000'
    d03f5db0