Skip to content

crashes if studyinfo is N/A #5

@yarikoptic

Description

@yarikoptic

the promise is that tool could be used on any 4D nifti but the code seems to rely on having some 'studyinfo':

$> ls -l phantom_3_1.nii.gz                             
-rw-r--r-- 1 yoh yoh 21181951 Nov  7 14:40 phantom_3_1.nii.gz

$> stabilitycalc /tmp phantom_3_1.nii.gz 0              
reading input file...
[4, 64, 64, 40, 121, 1, 1, 1]
cat: /tmp/studyinfo: No such file or directory
cat: /tmp/studyinfo: No such file or directory
cat: /tmp/studyinfo: No such file or directory
cat: /tmp/studyinfo: No such file or directory
Traceback (most recent call last):
  File "/usr/bin/stabilitycalc", line 423, in <module>
    theyear=studydate[0:4]
TypeError: 'NoneType' object has no attribute '__getitem__'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions