nipy / heudiconv

Flexible DICOM conversion into structured directory layouts
https://heudiconv.readthedocs.io
Other
234 stars 125 forks source link

added asl-support content in utils.py and dicoms.py files #713

Closed pbbaba closed 7 months ago

pbbaba commented 11 months ago

I added the if..else condition so as to avoid the code break if any dicom image does not contain these headers. It did break for 'Image Orientation Patient' tag.

I added these extra tags so as to make them accessible for naming the perf files during the BIDS conversion.

yarikoptic commented 9 months ago

I added the if..else condition so as to avoid the code break if any dicom image does not contain these headers. It did break for 'Image Orientation Patient' tag.

.get("key") should work and default to None if there is no "key". So code should not break and if..else hence not needed

yarikoptic commented 7 months ago

ping @pbbaba - do you have time to tune up the PR following the review?