Logfile.py - logfile parsing

Author:Andreas Heger
Release:$Id$
Date:December 09, 2013
Tags:Python

Purpose

Parse logfiles

Usage

Example:

python cgat_script_template.py --help

Type:

python cgat_script_template.py --help

for command line help.

Documentation

Code

class Logfile.RuntimeInformation

Bases: tuple

RuntimeInformation(script, options, jobid, host, has_finished, start_date, end_date, wall, utime, stime, cutime, cstime)

count(value) → integer -- return number of occurrences of value
cstime

Alias for field number 11

cutime

Alias for field number 10

end_date

Alias for field number 6

has_finished

Alias for field number 4

host

Alias for field number 3

index(value[, start[, stop]]) → integer -- return first index of value.

Raises ValueError if the value is not present.

jobid

Alias for field number 2

options

Alias for field number 1

script

Alias for field number 0

start_date

Alias for field number 5

stime

Alias for field number 9

utime

Alias for field number 8

wall

Alias for field number 7

class Logfile.LogFileDataLines

Bases: Logfile.LogFileData

record lines.

Table Of Contents

Previous topic

<no title>

Next topic

MAST.py - Parser for MAST files

This Page