Displaying report 1-1 of 1.
Reports until 00:29, Monday 15 July 2019
H1 SEI
cheryl.vorvick@LIGO.ORG - posted 00:29, Monday 15 July 2019 - last comment - 00:48, Monday 15 July 2019(50532)
FAMIS Task script issues: HAM CPS Python is trying to read data in the future

The script error:

Traceback (most recent call last):
  File .../scripts/HAM_cps_spectra.py", line 57, in
    cps_data= conn.fetch(start,stop,merged)
  File ".../dist-packages/nds2.py", line 3426, in fetch
    return _nds2.connection_fetch(self, gps_start, gps_stop, channel_names)
RuntimeError: Low level daq error occured [13]: Requested data were not found.
There is a gap in H1:ISI-HAM2_CPSINF_H1_IN1_DQ from gps 1247216400 to gps 1247217000.
Please note that there may be more gaps, this was the first one identified.

 

This says there is a gap in the data starting from 1247216400, however, current time is 1247210375, and I've lined up those two times below, so it's easy to see that the gap is in the future by 6025 seconds, which is 100.42 minutes.

1247210375
1247216400

Comments related to this report
cheryl.vorvick@LIGO.ORG - 00:48, Monday 15 July 2019 (50534)

Issue identified and corrected:  code was set to use 2am today, which is about 100 minutes in the future, so I added the variable, current_time, and added a test to check if start_time is less than current time, and if it's not, then start_time is set to 11pm yesterday, which is about 2 hours ago for me, right now.

Interestingly, the BSC CPS spectra also had this issue, but it didn't give an error on the missing data, it produced plots that had not data, so I added the same test to the BSC python code as well.

Code that was added is in BOLD and the original code is in Italics.

#find current time for test
current_time = gpstime.tconvert('now')

#start_time = int(raw_input('Enter a GPS time (usually 2 am local is good):'))
start_time =gpstime.tconvert('2am today')

if (start_time < current_time):
    start_time =gpstime.tconvert('2am today')
    xx = "using 2am today"
else:
    start_time =gpstime.tconvert('11pm yesterday')
    xx = "using 11pm yesterday"
    print(xx)

Files that were updated: HAM_cps_spectra.py and BSC_cps_spectra.py

Displaying report 1-1 of 1.