alabamagan / NIfTI-gridview

A pyQt interface to visualize NIfTI images as grided images.
MIT License
6 stars 2 forks source link

Switch image fails when more than one set of segmentation is loaded #7

Open alabamagan opened 2 years ago

alabamagan commented 2 years ago

Description

The image is not updated when different MRI file is selected after specifying more than one set of segmentation

Reproduce

  1. Open image folder
  2. Open segmentation folder
  3. Select one of the case with segmentation available
  4. Play with the sliders for zoom/pan
  5. Open another segmentation folder
  6. Select another case --> nothing happens (but the window is not crashed)

Error messages

Original exception was:
Traceback (most recent call last):
  File "C:\Users\king ra\PycharmProjects\NIfTI-gridview\nifti_gridview\ngv_gui\mainwindow.py", line 319, in _update_image_data
    config['segment'].append(seg_temp[display_lrange:display_urange + 1])
TypeError: 'NoneType' object is not subscriptable