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) |