From fc3ac0363018e474db16bfcfdf2e35c6f0627559 Mon Sep 17 00:00:00 2001 From: Celine Mercier Date: Thu, 12 Dec 2019 17:02:50 +0100 Subject: [PATCH] clean_dms: now works with extension --- python/obitools3/commands/clean_dms.pyx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/obitools3/commands/clean_dms.pyx b/python/obitools3/commands/clean_dms.pyx index 4d4eb4a..94d5bb5 100755 --- a/python/obitools3/commands/clean_dms.pyx +++ b/python/obitools3/commands/clean_dms.pyx @@ -21,7 +21,10 @@ def run(config): logger("info", "obi clean_dms") - if obi_clean_dms(tobytes(config['obi']['inputURI'])) < 0 : + dms_path = tobytes(config['obi']['inputURI']) + if b'.obidms' in dms_path: + dms_path = dms_path.split(b'.obidms')[0] + if obi_clean_dms(dms_path) < 0 : raise Exception("Error cleaning DMS", config['obi']['inputURI']) logger("info", "Done.")