v7labs / darwin-py

Library and commandline tool for managing datasets on darwin.v7labs.com
MIT License
115 stars 40 forks source link

[DAR-2504][External] Generate empty NifTI volumes when no polygons are present #863

Closed JBWilkie closed 1 month ago

JBWilkie commented 1 month ago

Problem

Currently, if no polygons are present in a NifTI file at the point of export, no file will be generated. This is problematic for our backend exports which seem to hang in these scenarios

Solution

If there are no polygons, export an empty NifTI file

Changelog

Generate an empty NifTI file if no polygons are present for export

linear[bot] commented 1 month ago

DAR-2504 Output a .nii.gz file even for empty NifTI exports