Classes | Functions | Variables
nova_text_metadata Namespace Reference

Classes

class  NovaText
 

Functions

def _createMetadata (filename, group, filesizebytes)
 

Variables

 novaTextExtractor = NovaText()
 

Function Documentation

def nova_text_metadata._createMetadata (   filename,
  group,
  filesizebytes 
)
private

Definition at line 12 of file nova_text_metadata.py.

References hadd_reco_validation.group.

Referenced by nova_text_metadata.NovaText.extract().

12 def _createMetadata(filename, group, filesizebytes):
13  md = {'file_name': filename, 'group':group, 'file_size': filesizebytes}
14 
15  md['file_type' ] = "text"
16  md['file_format'] = "text"
17  md['TextFileList.ParentDefinition'] = re.search('FileList_(.+?)_SnapID' , filename).group(1)
18  md['TextFileList.ParentSnapshotID'] = re.search('SnapID-(.+?)_TotRuns' , filename).group(1)
19  md['TextFileList.TotalRuns'] = re.search('TotRuns-(.+?)_FirstRun', filename).group(1)
20  md['TextFileList.FirstRun'] = re.search('FirstRun-(.+?)_LastRun', filename).group(1)
21  md['TextFileList.LastRun'] = re.search('LastRun-(.+?)_TotFiles', filename).group(1)
22  md['TextFileList.TotalFiles'] = re.search('TotFiles-(.+?)_Time' , filename).group(1)
23  md['TextFileList.TimeStamp'] = re.search('Time-(.+?).txt' , filename).group(1)
24 
25  return md
26 
def _createMetadata(filename, group, filesizebytes)

Variable Documentation

nova_text_metadata.novaTextExtractor = NovaText()

Definition at line 62 of file nova_text_metadata.py.