TheLabbingProject / django_mri

A reusable Django app to manage MRI data.
https://django-mri.readthedocs.io/en/latest/
Apache License 2.0
7 stars 5 forks source link

"'NoneType' object has no attribute 'header' " in scan creation #46

Closed ZviBaratz closed 4 years ago

ZviBaratz commented 4 years ago

image

I used Scan.objects.import_path to import a subject's directory and got these messages (nothing was imported). @Aharonyn do you have an idea what might be causing this?

ZviBaratz commented 4 years ago

It seems like get_session() tries to do:

header = series.image_set.first().header.instance|

before an image is created. I'll try to fix it today.