-
Notifications
You must be signed in to change notification settings - Fork 2
SVS anonymize outfile argument ignored if infolog is False #4
Copy link
Copy link
Open
Description
Outfile assignment only happens if infolog is True, but they should/could be entirely independent of each other.
MedicalImageAnonymizer/MedicalImageAnonymizer/SVS_anonymizer.py
Lines 287 to 300 in a2b03ee
| if infolog: | |
| root, ext = os.path.splitext(self._filename) | |
| if outfile is None: | |
| outfile = root + '_anonym.svs' | |
| shutil.copyfile(self._filename, outfile) | |
| filename = outfile | |
| infos = dict() | |
| else: | |
| filename = self._filename |
The above snippet is from the SVS anonymizer, but the same pattern appears to be repeated in the others as well.
I think it would make more sense for the outfile assignment to work regardless of whether you want the additional info file.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels