| Conditions | 3 |
| Total Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | |||
| 3 | def inheritFrom(provenance, parentProvenance): |
||
| 4 | inheritableFields = [ |
||
| 5 | 'acquired', |
||
| 6 | 'subject', |
||
| 7 | 'protocol', |
||
| 8 | 'technique', |
||
| 9 | 'repetition-time', |
||
| 10 | 'epi-factor', |
||
| 11 | 'magnetization-transfer-contrast', |
||
| 12 | 'diffusion', |
||
| 13 | 'echo-time', |
||
| 14 | 'flip-angle', |
||
| 15 | 'inversion-time', |
||
| 16 | 'duration', |
||
| 17 | 'subject-position', |
||
| 18 | 'water-fat-shift', |
||
| 19 | ] |
||
| 20 | for field in inheritableFields: |
||
| 21 | if field in parentProvenance: |
||
| 22 | provenance[field] = parentProvenance[field] |
||
| 23 | return provenance |
||
| 24 |