|
@@ 369-380 (lines=12) @@
|
| 366 |
|
self.warn('Unexpected header format', numline=self._numline) |
| 367 |
|
|
| 368 |
|
return 0 |
| 369 |
|
if line.startswith('Results database:'): |
| 370 |
|
if len(self._header) == 0: |
| 371 |
|
self.err("No header found", numline=self._numline) |
| 372 |
|
return -1 |
| 373 |
|
|
| 374 |
|
splitted = self.splitLine(line) |
| 375 |
|
if len(splitted) > 1: |
| 376 |
|
self._header['Result database'] = splitted[1].replace('"', '').strip() |
| 377 |
|
else: |
| 378 |
|
self.warn('Unexpected header format', numline=self._numline) |
| 379 |
|
|
| 380 |
|
return 0 |
| 381 |
|
|
| 382 |
|
|
| 383 |
|
if self.columns_name: |
|
@@ 357-368 (lines=12) @@
|
| 354 |
|
|
| 355 |
|
return 0 |
| 356 |
|
|
| 357 |
|
if line.startswith('Used Compound list'): |
| 358 |
|
if len(self._header) == 0: |
| 359 |
|
self.err("No header found", numline=self._numline) |
| 360 |
|
return -1 |
| 361 |
|
|
| 362 |
|
splitted = self.splitLine(line) |
| 363 |
|
if len(splitted) > 1: |
| 364 |
|
self._header['Used compound'] = splitted[1].replace('"', '').strip() |
| 365 |
|
else: |
| 366 |
|
self.warn('Unexpected header format', numline=self._numline) |
| 367 |
|
|
| 368 |
|
return 0 |
| 369 |
|
if line.startswith('Results database:'): |
| 370 |
|
if len(self._header) == 0: |
| 371 |
|
self.err("No header found", numline=self._numline) |
|
@@ 344-355 (lines=12) @@
|
| 341 |
|
|
| 342 |
|
return 0 |
| 343 |
|
|
| 344 |
|
if line.startswith('Correction applied for film'): |
| 345 |
|
if len(self._header) == 0: |
| 346 |
|
self.err("No header found", numline=self._numline) |
| 347 |
|
return -1 |
| 348 |
|
|
| 349 |
|
splitted = self.splitLine(line) |
| 350 |
|
if len(splitted) > 1: |
| 351 |
|
self._header['Correction film'] = splitted[1].replace('"', '').strip() |
| 352 |
|
else: |
| 353 |
|
self.warn('Unexpected header format', numline=self._numline) |
| 354 |
|
|
| 355 |
|
return 0 |
| 356 |
|
|
| 357 |
|
if line.startswith('Used Compound list'): |
| 358 |
|
if len(self._header) == 0: |
|
@@ 331-342 (lines=12) @@
|
| 328 |
|
|
| 329 |
|
return 0 |
| 330 |
|
|
| 331 |
|
if line.startswith('Correction applied for medium'): |
| 332 |
|
if len(self._header) == 0: |
| 333 |
|
self.warn('Unexpected header format', numline=self._numline) |
| 334 |
|
return -1 |
| 335 |
|
|
| 336 |
|
splitted = self.splitLine(line) |
| 337 |
|
if len(splitted) > 1: |
| 338 |
|
self._header['Correction medium'] = splitted[1].replace('"', '').strip() |
| 339 |
|
else: |
| 340 |
|
self.warn('Unexpected header format', numline=self._numline) |
| 341 |
|
|
| 342 |
|
return 0 |
| 343 |
|
|
| 344 |
|
if line.startswith('Correction applied for film'): |
| 345 |
|
if len(self._header) == 0: |
|
@@ 318-329 (lines=12) @@
|
| 315 |
|
|
| 316 |
|
return 0 |
| 317 |
|
|
| 318 |
|
if line.startswith('Weight after pressing (g)'): |
| 319 |
|
if len(self._header) == 0: |
| 320 |
|
self.err("No header found", numline=self._numline) |
| 321 |
|
return -1 |
| 322 |
|
|
| 323 |
|
splitted = self.splitLine(line) |
| 324 |
|
if len(splitted) > 1: |
| 325 |
|
self._header['Weight after pressing'] = splitted[1].replace('"', '').strip() |
| 326 |
|
else: |
| 327 |
|
self.warn('Unexpected header format', numline=self._numline) |
| 328 |
|
|
| 329 |
|
return 0 |
| 330 |
|
|
| 331 |
|
if line.startswith('Correction applied for medium'): |
| 332 |
|
if len(self._header) == 0: |
|
@@ 305-316 (lines=12) @@
|
| 302 |
|
|
| 303 |
|
return 0 |
| 304 |
|
|
| 305 |
|
if line.startswith('Initial sample weight (g)'): |
| 306 |
|
if len(self._header) == 0: |
| 307 |
|
self.err("No header found", numline=self._numline) |
| 308 |
|
return -1 |
| 309 |
|
|
| 310 |
|
splitted = self.splitLine(line) |
| 311 |
|
if len(splitted) > 1: |
| 312 |
|
self._header['Initial sample weight'] = splitted[1].replace('"', '').strip() |
| 313 |
|
else: |
| 314 |
|
self.warn('Unexpected header format', numline=self._numline) |
| 315 |
|
|
| 316 |
|
return 0 |
| 317 |
|
|
| 318 |
|
if line.startswith('Weight after pressing (g)'): |
| 319 |
|
if len(self._header) == 0: |
|
@@ 292-303 (lines=12) @@
|
| 289 |
|
|
| 290 |
|
return 0 |
| 291 |
|
|
| 292 |
|
if line.startswith('Sample type'): |
| 293 |
|
if len(self._header) == 0: |
| 294 |
|
self.err("No header found", numline=self._numline) |
| 295 |
|
return -1 |
| 296 |
|
|
| 297 |
|
splitted = self.splitLine(line) |
| 298 |
|
if len(splitted) > 1: |
| 299 |
|
self._header['Sample type'] = splitted[1].strip() |
| 300 |
|
else: |
| 301 |
|
self.warn('Unexpected header format', numline=self._numline) |
| 302 |
|
|
| 303 |
|
return 0 |
| 304 |
|
|
| 305 |
|
if line.startswith('Initial sample weight (g)'): |
| 306 |
|
if len(self._header) == 0: |
|
@@ 279-290 (lines=12) @@
|
| 276 |
|
|
| 277 |
|
return 0 |
| 278 |
|
|
| 279 |
|
if line.startswith('Normalised to'): |
| 280 |
|
if len(self._header) == 0: |
| 281 |
|
self.err("No header found", numline=self._numline) |
| 282 |
|
return -1 |
| 283 |
|
|
| 284 |
|
splitted = self.splitLine(line) |
| 285 |
|
if len(splitted) > 1: |
| 286 |
|
self._header['Normalized'] = splitted[1].replace('"', '').strip() |
| 287 |
|
else: |
| 288 |
|
self.warn('Unexpected header format', numline=self._numline) |
| 289 |
|
|
| 290 |
|
return 0 |
| 291 |
|
|
| 292 |
|
if line.startswith('Sample type'): |
| 293 |
|
if len(self._header) == 0: |
|
@@ 266-277 (lines=12) @@
|
| 263 |
|
|
| 264 |
|
return 0 |
| 265 |
|
|
| 266 |
|
if line.startswith('Sum before normalization'): |
| 267 |
|
if len(self._header) == 0: |
| 268 |
|
self.err("No header found", numline=self._numline) |
| 269 |
|
return -1 |
| 270 |
|
|
| 271 |
|
splitted = self.splitLine(line) |
| 272 |
|
if len(splitted) > 1: |
| 273 |
|
self._header['Sum'] = splitted[1].replace('"', '').strip() |
| 274 |
|
else: |
| 275 |
|
self.warn('Unexpected header format', numline=self._numline) |
| 276 |
|
|
| 277 |
|
return 0 |
| 278 |
|
|
| 279 |
|
if line.startswith('Normalised to'): |
| 280 |
|
if len(self._header) == 0: |
|
@@ 241-252 (lines=12) @@
|
| 238 |
|
self.warn('Unexpected header format', numline=self._numline) |
| 239 |
|
return 1 |
| 240 |
|
# Save each header field (that we know) and its own value in the dict |
| 241 |
|
if line.startswith('R.M.S.'): |
| 242 |
|
|
| 243 |
|
if len(self._header) == 0: |
| 244 |
|
self.err("No header found", numline=self._numline) |
| 245 |
|
return -1 |
| 246 |
|
|
| 247 |
|
splitted = self.splitLine(line) |
| 248 |
|
if len(splitted) > 1: |
| 249 |
|
self._header['R.M.S.'] = splitted[1].replace('"', '').strip() |
| 250 |
|
else: |
| 251 |
|
self.warn('Unexpected header format', numline=self._numline) |
| 252 |
|
return 0 |
| 253 |
|
|
| 254 |
|
if line.startswith('Result status'): |
| 255 |
|
if len(self._header) == 0: |
|
@@ 254-264 (lines=11) @@
|
| 251 |
|
self.warn('Unexpected header format', numline=self._numline) |
| 252 |
|
return 0 |
| 253 |
|
|
| 254 |
|
if line.startswith('Result status'): |
| 255 |
|
if len(self._header) == 0: |
| 256 |
|
self.err("No header found", numline=self._numline) |
| 257 |
|
|
| 258 |
|
splitted = self.splitLine(line) |
| 259 |
|
if len(splitted) > 1: |
| 260 |
|
self._header['Result status'] = splitted[1].replace('"', '').strip() |
| 261 |
|
else: |
| 262 |
|
self.warn('Unexpected header format', numline=self._numline) |
| 263 |
|
|
| 264 |
|
return 0 |
| 265 |
|
|
| 266 |
|
if line.startswith('Sum before normalization'): |
| 267 |
|
if len(self._header) == 0: |
|
@@ 82-92 (lines=11) @@
|
| 79 |
|
self.warn('Unexpected header format', numline=self._numline) |
| 80 |
|
return 0 |
| 81 |
|
|
| 82 |
|
if line.startswith('Number of'): |
| 83 |
|
if len(self._header) == 0: |
| 84 |
|
self.err("No header found", numline=self._numline) |
| 85 |
|
return -1 |
| 86 |
|
|
| 87 |
|
splitted = self.splitLine(line) |
| 88 |
|
if len(splitted) > 1: |
| 89 |
|
self._header['NumResults'] = splitted[1].replace('"', '').strip() |
| 90 |
|
else: |
| 91 |
|
self.warn('Unexpected header format', numline=self._numline) |
| 92 |
|
return 0 |
| 93 |
|
|
| 94 |
|
if line.startswith('Seq.'): |
| 95 |
|
if len(self._header) == 0: |
|
@@ 70-80 (lines=11) @@
|
| 67 |
|
self._header['Quantitative'] = splitted[1] |
| 68 |
|
return 1 |
| 69 |
|
|
| 70 |
|
if line.startswith('Selected archive'): |
| 71 |
|
if len(self._header) == 0: |
| 72 |
|
self.err("No header found", numline=self._numline) |
| 73 |
|
return -1 |
| 74 |
|
|
| 75 |
|
splitted = self.splitLine(line) |
| 76 |
|
if len(splitted) > 1: |
| 77 |
|
self._header['Archive'] = splitted[1].replace('"', '').strip() |
| 78 |
|
else: |
| 79 |
|
self.warn('Unexpected header format', numline=self._numline) |
| 80 |
|
return 0 |
| 81 |
|
|
| 82 |
|
if line.startswith('Number of'): |
| 83 |
|
if len(self._header) == 0: |