Loading 4D dicom sequences from python script

Dear Community,

I am struggling to load my 4D data, in dicom format, using a python script. What I need is something similar to the example in the script repository “Browse a sequence and access currently displayed nodes”, but I am not able to get the sequenceNode. However, I am able to load this sequence using the GUI.
(I am using Slicer 5.0.3 in linux.)

Regards,
Laura

Does this script load the volume sequence?

No, I get the following error

DICOM plugin failed to load ‘7: ’ as a ‘MultiVolume’.
Traceback (most recent call last):
File “/home/Slicer-5.0.3-linux-amd64/lib/Slicer-5.0/qt-scripted-modules/DICOMLib/DICOMUtils.py”, line 790, in loadLoadables
loadSuccess = plugin.load(loadable)
File “/home/Slicer-5.0.3-linux-amd64/bin/…/lib/Slicer-5.0/qt-scripted-modules/MultiVolumeImporterPlugin.py”, line 586, in load
files = mvNode.GetAttribute(‘MultiVolume.FrameFileList’).split(’,')
AttributeError: ‘NoneType’ object has no attribute ‘split’

Could you please test with the latest Slicer Stable Release?