|
@@ 304-315 (lines=12) @@
|
| 301 |
|
|
| 302 |
|
return 0 |
| 303 |
|
|
| 304 |
|
if line.startswith('Sample type'): |
| 305 |
|
if len(self._header) == 0: |
| 306 |
|
self.err("No header found", numline=self._numline) |
| 307 |
|
return -1 |
| 308 |
|
|
| 309 |
|
splitted = self.splitLine(line) |
| 310 |
|
if len(splitted) > 1: |
| 311 |
|
self._header['Sample type'] = splitted[1].strip() |
| 312 |
|
else: |
| 313 |
|
self.warn('Unexpected header format', numline=self._numline) |
| 314 |
|
|
| 315 |
|
return 0 |
| 316 |
|
|
| 317 |
|
if line.startswith('Initial sample weight (g)'): |
| 318 |
|
if len(self._header) == 0: |
|
@@ 266-276 (lines=11) @@
|
| 263 |
|
self.warn('Unexpected header format', numline=self._numline) |
| 264 |
|
return 0 |
| 265 |
|
|
| 266 |
|
if line.startswith('Result status'): |
| 267 |
|
if len(self._header) == 0: |
| 268 |
|
self.err("No header found", numline=self._numline) |
| 269 |
|
|
| 270 |
|
splitted = self.splitLine(line) |
| 271 |
|
if len(splitted) > 1: |
| 272 |
|
self._header['Result status'] = splitted[1].replace('"', '').strip() |
| 273 |
|
else: |
| 274 |
|
self.warn('Unexpected header format', numline=self._numline) |
| 275 |
|
|
| 276 |
|
return 0 |
| 277 |
|
|
| 278 |
|
if line.startswith('Sum before normalization'): |
| 279 |
|
if len(self._header) == 0: |