Skip to content

Exporting two segmentation nodes in a row in the same output directory overwrite the prevous one #261

@jcfr

Description

@jcfr

Since the DICOM file name is initialized using the current date and time, exporting in the same directory overwrites the previous file.

segFileName = "subject_hierarchy_export.SEG" + exporter.currentDateTime + ".dcm"

@property
def currentDateTime(self, outputFormat='%Y-%m-%d_%H%M%S'):
from datetime import datetime
return datetime.now().strftime(outputFormat)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions