raysearchlabs / dicomutils

A set of utilities for working with DICOM files
47 stars 19 forks source link

Fix errors when running with python 2.7.14 #3

Open AzP opened 6 years ago

AzP commented 6 years ago

If updating Anaconda, the script fails with warnings about "ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()"

There might be a better way of fixing this, I wasn't sure about calling .any on None.

AzP commented 6 years ago

@ryanneph I agree that your fix(es) are better, could you open a PR for your commit as well?

ryanneph commented 6 years ago

@AzP I opened a PR (#5) with the changes.