ATLAS Offline Software
Functions | Variables
grepfile Namespace Reference

Functions

def durationstr (sec)
 

Variables

 d
 
 searchstr
 
 age
 
 reffile
 
 fr = open( 'data/%s.tmp.txt' % searchstr, "r" )
 
int ic = 0
 
list filenames = []
 
list paths = []
 
 filename
 
 sep
 
 info
 
 path = filename[:filename.index(searchstr)]
 
string content = ''
 
list refpath = paths[0]
 
string s = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html xmlns:"my"><head><head><title>ATLCAL results for dataset: %s' % searchstr
 

Function Documentation

◆ durationstr()

def grepfile.durationstr (   sec)

Definition at line 16 of file grepfile.py.

16 def durationstr(sec):
17  dt = time.gmtime(sec)[2:6]
18  if dt[0]>1:
19  return "%id %ih %im %is" % ((dt[0]-1,) + dt[1:])
20  else:
21  return "%ih %im %is" % dt[1:]
22 

Variable Documentation

◆ age

grepfile.age

Definition at line 26 of file grepfile.py.

◆ content

string grepfile.content = ''

Definition at line 56 of file grepfile.py.

◆ d

grepfile.d

Definition at line 26 of file grepfile.py.

◆ filename

grepfile.filename

Definition at line 38 of file grepfile.py.

◆ filenames

list grepfile.filenames = []

Definition at line 34 of file grepfile.py.

◆ fr

grepfile.fr = open( 'data/%s.tmp.txt' % searchstr, "r" )

Definition at line 32 of file grepfile.py.

◆ ic

int grepfile.ic = 0

Definition at line 33 of file grepfile.py.

◆ info

grepfile.info

Definition at line 38 of file grepfile.py.

◆ path

grepfile.path = filename[:filename.index(searchstr)]

Definition at line 41 of file grepfile.py.

◆ paths

list grepfile.paths = []

Definition at line 35 of file grepfile.py.

◆ reffile

grepfile.reffile

Definition at line 26 of file grepfile.py.

◆ refpath

list grepfile.refpath = paths[0]

Definition at line 58 of file grepfile.py.

◆ s

string grepfile.s = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html xmlns:"my"><head><head><title>ATLCAL results for dataset: %s' % searchstr

Definition at line 68 of file grepfile.py.

◆ searchstr

grepfile.searchstr

Definition at line 26 of file grepfile.py.

◆ sep

grepfile.sep

Definition at line 38 of file grepfile.py.

grepfile.durationstr
def durationstr(sec)
Definition: grepfile.py:16