From 5e5612a5745bb4214b5438ba92020eaf7d53e591 Mon Sep 17 00:00:00 2001 From: aknecht2 <aknecht2@unl.edu> Date: Sun, 8 Nov 2015 15:22:56 -0600 Subject: [PATCH] Fixed threshold validation #2 --- ih/conf.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ih/conf.py b/ih/conf.py index d685086..f67a197 100644 --- a/ih/conf.py +++ b/ih/conf.py @@ -1205,9 +1205,8 @@ valid = { "value": "" }, "--thresh": { - "type": "string", - "validation": "list", - "value": ["binary", "inverse", "truncate", "tozero", "otsu"] + "type": "numeric", + "required": "true" }, "--max": { "type": "numeric", @@ -1217,7 +1216,7 @@ valid = { "--type": { "type": "string", "validation": "list", - "value": ["binary", "trunc", "otsu", "tozero"] + "value": ["binary", "inverse", "trunc", "otsu", "tozero"] } } }, -- GitLab