Commit 7036139c authored by Marius Kriegerowski's avatar Marius Kriegerowski
Browse files

Merge branch 'overwrite' into 'master'

overwrite stackmax directory if --force

...otherwise zombie traces of previous runs might remain in that directory. Could happen if traces are prepared in a different way when changing config files.

See merge request !5
parents 35ec3924 20d78c45
......@@ -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:
raise common.LassieError(
'detections file already exists: %s' % config.detections_path)
Supports Markdown
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