ATLAS Offline Software
Functions | Variables
parseDir Namespace Reference

Functions

def findMin (path)
 

Variables

list test_table = []
 
 wh = path+dir
 
list listed = [ name for name in os.listdir(wh) if os.path.isdir(os.path.join(wh, name)) ]
 
 resDir = filter( lambda dirname: dirname[0]!="L" and dirname[0]!="." , listed)
 
string weightPath = wh+"/"+weightsDir
 
list listedWeights = [ name for name in os.listdir(weightPath) if os.path.isdir(os.path.join(weightPath , name)) ]
 
 filteredListW = filter( lambda dirname: dirname[0]!="L" and dirname[0]!="." , listedWeights)
 
string chronFile = weightPath+"/"+w+"/trainingCronology.txt"
 
int epochAtMin = -1
 
int min = -1
 

Function Documentation

◆ findMin()

def parseDir.findMin (   path)

Definition at line 6 of file parseDir.py.

6 def findMin(path):
7  minimum=10000
8  epochWithMinimum=-1
9 
10  import os
11  command = "cp "+path+" ."
12  os.system(command)
13  os.system('source cleanFile.sh')
14 
15 
16  for line in file('chron.txt'):
17  line = line.split()
18  epoch = int(line[0])
19  trainingError = float(line[1])
20  testError = float(line[2])
21  if testError < minimum:
22  minimum = testError
23  epochWithMinimum = epoch
24 
25  return epochWithMinimum , minimum
26 
27 
28 
29 path="/afs/cern.ch/user/g/giacinto/scratch0/Athena/rel_2/InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NnClusteringCalibration/"
30 

Variable Documentation

◆ chronFile

string parseDir.chronFile = weightPath+"/"+w+"/trainingCronology.txt"

Definition at line 55 of file parseDir.py.

◆ epochAtMin

parseDir.epochAtMin = -1

Definition at line 56 of file parseDir.py.

◆ filteredListW

parseDir.filteredListW = filter( lambda dirname: dirname[0]!="L" and dirname[0]!="." , listedWeights)

Definition at line 53 of file parseDir.py.

◆ listed

list parseDir.listed = [ name for name in os.listdir(wh) if os.path.isdir(os.path.join(wh, name)) ]

Definition at line 46 of file parseDir.py.

◆ listedWeights

list parseDir.listedWeights = [ name for name in os.listdir(weightPath) if os.path.isdir(os.path.join(weightPath , name)) ]

Definition at line 52 of file parseDir.py.

◆ min

parseDir.min = -1

Definition at line 57 of file parseDir.py.

◆ resDir

parseDir.resDir = filter( lambda dirname: dirname[0]!="L" and dirname[0]!="." , listed)

Definition at line 48 of file parseDir.py.

◆ test_table

list parseDir.test_table = []

Definition at line 31 of file parseDir.py.

◆ weightPath

string parseDir.weightPath = wh+"/"+weightsDir

Definition at line 51 of file parseDir.py.

◆ wh

parseDir.wh = path+dir

Definition at line 45 of file parseDir.py.

file
TFile * file
Definition: tile_monitor.h:29
parseDir.findMin
def findMin(path)
Definition: parseDir.py:6
python.CaloAddPedShiftConfig.int
int
Definition: CaloAddPedShiftConfig.py:45
python.LArMinBiasAlgConfig.float
float
Definition: LArMinBiasAlgConfig.py:65