Loading pickled data

koeglfryderyk
Thu, 16 Dec 2021 10:21:48 +0000
Development

I want to load pickled data from the GUI in my custom extension.

When using the ‘Add data’ dialog to try to load such data, Slicer throws an error (Error - load failed).

As a workaround, I thought I could use the ‘Add data’ dialog to get the path to the required file and then load it in my scripted module.

However, I could not find out how to access this path. I only managed to open the dialog with slicer.util.openAddVolumeDialog().

How can I access this path?

4 posts - 2 participants