kakwok / MonLoggerReader

Parse text files from monLogger

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MonLoggerReader

Parse text files from monLogger

  1. To prepare a json:

python writejson.py --fileLocation="pathToTextFile"

  1. Configuration of json

flist : list of input monLogger txt files. Need to have the same number of columns within one file. Use # to skip loading the files

columnToShow : list of columns to be plotted. Use # to comment.

columnValueFiler : a list of dictionaries with keys "colname","value","operator" e.g.

   "columnValueFilter":[
       {
         "colname":"RBX",
         "value":"HEP20",
         "operator":"=="   # or [">=" , "<=", "!="]
      }
   ]
  1. Example commands:

python monlogReader.py --startTime="2018-08-29 18:00" --printConfig="MON_HCAL_NGRBX_PerHERBX.json" --ymax 1E6 --RBX HEM08

To see the table values or debug, use the --makeTable option.

To scan all RBXes for PLL diff: python monlogReader.py --startTime="2018-06-29 08:00" --printConfig="./mezzPLLdiff.json" --RBXes --odir diff_filtered --diff --makeTable --png

To analysis the output txt file: python monlogReader.py --startTime="2018-06-29 08:00" --printConfig="./merged.json" --makeTable --notMonLog

About

Parse text files from monLogger


Languages

Language:Python 93.1%Language:Shell 6.9%