How to use simpleITK WriteImage to write a .nii file to DSS file system?

lilin28
Level 1
How to use simpleITK WriteImage to write a .nii file to DSS file system?

I am trying to output a nii image file to the output folder. But when I use simpleITK to write the image, the data cannot write on the output folder. But When I run the notebook there is no error message neither.

0 Kudos
1 Reply
AlexT
Dataiker

HI @lilin28 ,
Unless you use local filesystem managed folder I writting directly with simpleITK would not work.
It would be best if you try to write to local file or tempfile first and then use the read/write API to upload this to the managed folder using upload_stream.

https://knowledge.dataiku.com/latest/code/managed-folders/concept-managed-folders.html#folders-datai...

If this doesn't please share a snippet of your code and any errors.


Thanks,

0 Kudos