Browse Source

Fixed issue with e-EVN exp runs

master
Benito Marcote 2 years ago
parent
commit
a4058b1a4e
  1. 6
      comment_tasav_file.py

6
comment_tasav_file.py

@ -4,11 +4,11 @@ Creates the {exp}.comment and {exp}.tasav.txt files for the EVN Pipeline.
Given a default template, customizes it to include the basic data from the given experiment.
Version: 2.7
Date: May 2019
Date: Jun 2019
Author: Benito Marcote (marcote@jive.eu)
version 2.7 changes
- Bug fix when EXP is an e-EVN (and different from the run name).
- Bug fix searching for EXP with _N in MASTER_PROJECTS.LIS
version 2.6 changes
- Bug fix searching for EXP with _N in MASTER_PROJECTS.LIS
version 2.5 changes
@ -237,7 +237,7 @@ def parse_setup(exp, type_exp, freq, datarate, number_ifs, bandwidth, pols):
date = subprocess.getoutput('ssh jops@ccs grep {} /ccs/var/log2vex/MASTER_PROJECTS.LIS | cut -d " " -f 4'.format(exp.upper()))
if '\n' in date:
# Can happen in case of e-EVNs if this is not the official run exp name.
date = date.split('\n')[1].strip()
date = date.replace('\n','').strip()
obsdate = dt.strptime(date, '%Y%m%d')
if freq < 0.6:
band = 'P'

Loading…
Cancel
Save