Commit d03f5db0 authored by Koh Ueno's avatar Koh Ueno
Browse files

delete the cvs_entry_time argument used in gstlal-ugly/bin/gstlal_injsplitter

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'
parent 23f0ec74
Pipeline #212340 passed with stages
in 33 minutes and 15 seconds
......@@ -21,7 +21,6 @@
#
###############################################################################
from time import strftime
from optparse import OptionParser
from ligo.lw import lsctables
from ligo.lw import utils
......@@ -79,8 +78,7 @@ process_params_table = lsctables.table.get_table(xmldoc, lsctables.ProcessParams
# PREPARE PROCESS TABLE WITH INFORMATION ABOUT THE CURRENT PROGRAM
process = ligolw_process.register_to_xmldoc(xmldoc,
"gstlal_injsplitter", opts_dict,
version="no version", cvs_repository="gstlal",
cvs_entry_time=strftime('%Y/%m/%d %H:%M:%S'))
version="no version", cvs_repository="gstlal")
sim_inspiral_table_split = lsctables.New(lsctables.SimInspiralTable)
sim_inspiral_table.parentNode.replaceChild(sim_inspiral_table_split, sim_inspiral_table)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment