ecotag: trying to use a threshold lower than the ref db threshold now

returns an error instead of a warning
This commit is contained in:
Celine Mercier
2019-09-15 19:27:47 +02:00
parent f8d1fa678a
commit eb913b2742
2 changed files with 9 additions and 3 deletions

View File

@ -63,6 +63,11 @@ def run(config):
ref_dms_name = ref[0].name
ref_view_name = ref[1]
# Check that the threshold demanded is greater than or equal to the threshold used to build the reference database
if config['ecotag']['threshold'] < eval(i_dms[ref_view_name].comments["ref_db_threshold"]) :
print("Error: The threshold demanded (%f) is lower than the threshold used to build the reference database (%f).",
config['ecotag']['threshold'], i_dms[ref_view_name].comments["ref_db_threshold"])
# Open the output: only the DMS
output = open_uri(config['obi']['outputURI'],
input=False,