(obj, params, action)
| 4 | import pprint |
| 5 | |
| 6 | def addDataProcessing(obj, params, action): |
| 7 | if isinstance(obj, pms.MSExperiment): |
| 8 | result = pms.MSExperiment() |
| 9 | for spec in obj: |
| 10 | spec = _addDataProcessing(spec, params, action) |
| 11 | result.addSpectrum(spec) |
| 12 | else: |
| 13 | result = _addDataProcessing(obj, params, action) |
| 14 | return result |
| 15 | |
| 16 | def _addDataProcessing(item, params, action): |
| 17 | dp = item.getDataProcessing() |
no test coverage detected