Browse Source

overwrite stackmax directory if --force

overwrite
Marius Kriegerowski 5 years ago
parent
commit
20d78c45aa
  1. 3
      src/core.py

3
src/core.py

@ -2,6 +2,7 @@ import sys
import os
import logging
import os.path as op
import shutil
import numpy as num
@ -26,6 +27,8 @@ def scan(
if op.exists(config.detections_path):
if force:
os.unlink(config.detections_path)
shutil.rmtree('stackmax')
os.mkdir('stackmax')
else:
raise common.LassieError(
'detections file already exists: %s' % config.detections_path)

Loading…
Cancel
Save