danishm / mritopng

A simple python module to make it easy to batch convert DICOM files to PNG images.
MIT License
137 stars 48 forks source link

force=True in Windows 10 #21

Open theincognito-inc opened 5 years ago

theincognito-inc commented 5 years ago

Hi,

I tried the following command: mritopng --auto-contrast -f vol_000-0 vol0_0

And I get the following result: FAIL: vol_000-0\000.mri --> vol0_0.\000.mri.png : File is missing DICOM File Meta Information header or the 'DICM' prefix is missing from the header. Use force=True to force reading.

How do I set this force=true in cmd?

danishm commented 5 years ago

@theincognito-inc Thank you for getting in touch and for reporting this issue.

Would it be possible to share a sample file with this error with me? I appreciate the fact that this might be private data and it might not be appropriate to share. I like to test any code changes that I make.