17 filename=os.path.expanduser(filename)
18 if filename.endswith(
'.gz'):
20 fh = gzip.open(filename,
'r')
22 fh =
open(filename,
'r')
30 if line[0]!=
'>' and line[0]!=
'|':
38 firstline=line.strip().removeprefix(
"||")
40 keys = [key.strip()
for key
in firstline.split(
"||")]
41 nextLine = lineIt.next()
42 secondline=nextLine.strip().removeprefix(
"||")
44 values = [
float(value.strip())
for value
in secondline.split(
"||")]
45 info = dict(zip(keys,values))
46 summary[collectionName]=info
50 print (
"Found data for the following collections: ", summary.keys())
52 from PmbUtils.ValuePerDomainCalcUtils
import PlottableResult, JobListPlotter, TimeLabel
53 title =
'MooreTracks ( %s events)' %
int(summary[
'MooreTracks'].
get(
'Events'))
54 result = PlottableResult(summary[
'MooreTracks'].
keys(), title=title)
56 exclusions = [
"Events",
"Tracks"]
57 for key
in summary[
'MooreTracks'].
keys():
58 if (key
not in exclusions):
59 result.addPoint(colname=key, value=summary[
'MooreTracks'].
get(key), time=TimeLabel(label=
"Now",sortvalue=0))
60 JobListPlotter().produceTimeDevelopmentPlot(result,
"test.png")