16 """ stores the config data of the ini files or the console parameters
21 self.
mpspath = os.path.join(os.path.dirname(__file__))
87 logger = logging.getLogger(
"mpsvalidate")
90 parser = ConfigParser.ConfigParser()
93 if (parser.read(path) == []):
94 logger.error(
"Could not open ini-file: {0}".
format(path))
101 configBuffer.jobNumber = int(parser.get(
"GENERAL",
"job"))
102 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
106 configBuffer.jobDataPath = parser.get(
"GENERAL",
"jobdatapath")
107 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
111 if (configBuffer.jobNumber != -1
and configBuffer.jobDataPath ==
""):
120 if (configBuffer.jobDataPath !=
""):
126 if (parser.get(
"GENERAL",
"outputpath")):
127 self.
outputPath = parser.get(
"GENERAL",
"outputpath")
128 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
134 self.
jobTime = int(parser.get(
"GENERAL",
"time"))
135 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
139 self.
latexfile = parser.get(
"GENERAL",
"latexfile")
140 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
144 self.
limit = parser.get(
"GENERAL",
"limit")
145 self.
limit = map(float, self.limit.replace(
" ",
"").
split(
","))
148 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
152 self.
statboxsize = float(parser.get(
"GENERAL",
"statboxsize"))
153 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
159 self.
numberofbins = int(parser.get(
"MODULEPLOTS",
"numberofbins"))
160 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
164 self.
defpeak = int(parser.get(
"MODULEPLOTS",
"defpeak"))
165 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
169 self.
widthstddev = int(parser.get(
"MODULEPLOTS",
"widthstddev"))
170 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
174 self.
samerange = int(parser.get(
"MODULEPLOTS",
"samerange"))
175 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
179 self.
rangemode = parser.get(
"MODULEPLOTS",
"rangemode")
180 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
184 self.
rangexyzM = parser.get(
"MODULEPLOTS",
"rangexyz")
186 map(float, self.rangexyzM.replace(
" ",
"").
split(
",")))
187 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
191 self.
rangerotM = parser.get(
"MODULEPLOTS",
"rangerot")
193 map(float, self.rangerotM.replace(
" ",
"").
split(
",")))
194 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
198 self.
rangedistM = parser.get(
"MODULEPLOTS",
"rangedist")
200 map(float, self.rangedistM.replace(
" ",
"").
split(
",")))
201 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
207 self.
rangexyzHL = parser.get(
"HIGHLEVELPLOTS",
"rangexyz")
209 map(float, self.rangexyzHL.replace(
" ",
"").
split(
",")))
210 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
214 self.
rangerotHL = parser.get(
"HIGHLEVELPLOTS",
"rangerot")
216 map(float, self.rangerotHL.replace(
" ",
"").
split(
",")))
217 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
221 self.
samerangeHL = int(parser.get(
"HIGHLEVELPLOTS",
"samerange"))
222 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
226 self.
rangemodeHL = parser.get(
"HIGHLEVELPLOTS",
"rangemode")
227 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
233 self.
firsttree = int(parser.get(
"TIMEPLOTS",
"firsttree"))
234 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
240 self.
showmonitor = int(parser.get(
"SHOW",
"showmonitor"))
241 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
246 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
250 self.
showdump = int(parser.get(
"SHOW",
"showdump"))
251 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
255 self.
showtime = int(parser.get(
"SHOW",
"showtime"))
256 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
260 self.
showhighlevel = int(parser.get(
"SHOW",
"showhighlevel"))
261 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
265 self.
showmodule = int(parser.get(
"SHOW",
"showmodule"))
266 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
270 self.
showsubmodule = int(parser.get(
"SHOW",
"showsubmodule"))
271 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
275 self.
showtex = int(parser.get(
"SHOW",
"showtex"))
276 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
280 self.
showbeamer = int(parser.get(
"SHOW",
"showbeamer"))
281 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
285 self.
showhtml = int(parser.get(
"SHOW",
"showhtml"))
286 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
290 logger = logging.getLogger(
"mpsvalidate")
293 if (args.time != -1):
306 if (args.jobdatapath !=
""):
309 if (args.message !=
""):
313 if (args.jobdatapath):
316 if (args.outputpath):
OutputIterator zip(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result, Compare comp)