Maintenance will be performed on git.ligo.org, chat.ligo.org, containers.ligo.org, and docs.ligo.org on Tuesday 26 May 2020 starting at approximately 10am CDT. It is expected to take around 30 minutes and will involve a short period of downtime, around 5 minutes, towards the end of the maintenance period. Please address any questions, comments, or concerns to uwm-help@cgca.uwm.edu.

Commit 3cea3d8e authored by Anchal Gupta's avatar Anchal Gupta

Added use of new data directory

parent 8c01eefe
......@@ -13,24 +13,26 @@ import argparse
import time
import os
dataDir = '../dailyBeatNoteData/'
def main(args):
cwd = os.getcwd()
while(1):
timeStr = time.strftime('%H:%M', time.localtime())
if timeStr == args.triggerTime or args.triggerNow:
print('Triggered at',
time.strftime('%H:%M', time.localtime()),
'.Taking beatnote timeseries measurement...')
os.chdir(dataDir)
fileList = BNspec(detector=args.detector,
instrument=args.instrument,
fileRoot='Beatnote', ipAddress=args.ipAddress,
duration=args.duration,
sampleRate=args.sampleRate,
bandWidth=args.bandWidth, atten=args.atten,
paramFile=args.paramFile,
chListFile=args.chListFile)
paramFile=args.paramFile)
if args.saveSpace:
os.remove(fileList[0])
os.chdir(cwd)
if fileList[0] != 'Error':
if not args.testing:
# Plot the spectrum
......@@ -98,9 +100,6 @@ def grabInputArgs():
parser.add_argument('--detector', type=str,
help='Detector used. NF1811 or SN101(default)',
default='SN101')
parser.add_argument('-c', '--chListFile', type=str,
help='ChannelList file with path to write in logs.',
default='ChannelList.txt')
parser.add_argument('--savedEstPSDs', type=str,
help='File where saved estimates of noise '
'contributions are present.',
......
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