From 0c699441832351a63214cfee75bf4fed904a84d4 Mon Sep 17 00:00:00 2001 From: gac-x04sa Date: Wed, 31 Oct 2018 10:59:39 +0100 Subject: [PATCH] Script execution --- script/local.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/local.py b/script/local.py index e85b9a4..2d42160 100644 --- a/script/local.py +++ b/script/local.py @@ -83,7 +83,7 @@ def get_geometry(): def set_geometry(value, apply = None): """ """ - if value is None or len(value.strip() == 0): + if value is None or (len(value.strip()) == 0): set_setting(GEOMETRY_PREFERENCE, "" ) for name in "wavelength", "hkl_group", "h", "k", "l": dev = get_device(name)