Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions dicom2nifti/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,9 @@ def is_float(number):
return True
except ValueError:
return False
except TypeError:
# Some types cannot be taken by `float`, such as None.
return False

# only set if it is an actual float, can also be empty/none
if not is_float(repetition_time) or not is_float(echo_time):
Expand Down