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 7 of file parseDir.py.

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

Variable Documentation

◆ chronFile

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

Definition at line 56 of file parseDir.py.

◆ epochAtMin

parseDir.epochAtMin = -1

Definition at line 57 of file parseDir.py.

◆ filteredListW

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

Definition at line 54 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 47 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 53 of file parseDir.py.

◆ min

parseDir.min = -1

Definition at line 58 of file parseDir.py.

◆ resDir

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

Definition at line 49 of file parseDir.py.

◆ test_table

list parseDir.test_table = []

Definition at line 32 of file parseDir.py.

◆ weightPath

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

Definition at line 52 of file parseDir.py.

◆ wh

parseDir.wh = path+dir

Definition at line 46 of file parseDir.py.

CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
file
TFile * file
Definition: tile_monitor.h:29
parseDir.findMin
def findMin(path)
Definition: parseDir.py:7
readCCLHist.float
float
Definition: readCCLHist.py:83