Commit 6e00b30e authored by mibaumgartner's avatar mibaumgartner
Browse files

misc

parent ce2afc95
......@@ -18,7 +18,6 @@ import argparse
import shutil
import sys
from pathlib import Path
from tokenize import PseudoExtras
from hydra import initialize_config_module
from loguru import logger
......
......@@ -21,9 +21,11 @@ from pathlib import Path
from hydra import initialize_config_module
from nndet.utils.config import compose
from nndet.utils.check import env_guard
if __name__ == '__main__':
@env_guard
def main():
"""
Automatically deletes files generated by seg2det and restores
the orignal segmentations
......@@ -54,3 +56,7 @@ if __name__ == '__main__':
os.rename(f, f.parent / f"{f.name.rsplit('_', 1)[0]}.nii.gz")
else:
print(f"{p} is not a dir. Skipping.")
if __name__ == '__main__':
main()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment