40m QIL Cryo_Lab CTN SUS_Lab TCS_Lab OMC_Lab CRIME_Lab FEA ENG_Labs OptContFac Mariner WBEEShop
  40m Log  Not logged in ELOG logo
Entry  Tue Nov 16 21:42:31 2010, rana, Update, CDS, Screen Time Fix 
    Reply  Wed Nov 17 10:39:20 2010, josephb, Update, CDS, Screen Time Fix 
Message ID: 3935     Entry time: Tue Nov 16 21:42:31 2010     Reply to this: 3938
Author: rana 
Type: Update 
Category: CDS 
Subject: Screen Time Fix 
I learned today that the following python code will do a find/replace to fix the TIME string on any MEDM screen which has a whited out time field.
Previously, this field was sourced from the c1dscepics of c1losepics process. Now we have to get it from the IOO or SUS front ends

Here's the python code:

import re
o = open("output.adl","w")
data = open("test.adl").read()
o.write( re.sub("C0:TIM-PACIFIC_STRING","C1:FEC-34_TIME_STRING",data)  )
o.close()

Where 'output.adl' could be the same name as 'test.adl' if you want to
replace the existing file. Also FEC-34 just refers to which FE you're running.
It could, in principle, be any one of them.
 

The next step is to figure out how to apply this to all the files in a directory.

ELOG V3.1.3-