How to use simpleITK WriteImage to write a .nii file to DSS file system?
lilin28
Registered Posts: 2 ✭
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.
Answers
-
Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,226 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-dataiku-apiIf this doesn't please share a snippet of your code and any errors.
Thanks,