From bb05de8abe8d4c0a496f551cf2463fcc32d16a87 Mon Sep 17 00:00:00 2001 From: Cameron Bodine Date: Mon, 9 Sep 2024 21:31:19 -0400 Subject: [PATCH] Fix gui save defaults --- src/funcs_common.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/funcs_common.py b/src/funcs_common.py index 88eb5e8..aeba19b 100644 --- a/src/funcs_common.py +++ b/src/funcs_common.py @@ -304,9 +304,14 @@ def saveDefaultParams(values): projDir = os.path.join(values['proj'], values['projName']) except: projDir = os.path.join(values['proj'], values['prefix']) + + try: + inDir = values['inDir'] + except: + inDir = '' params = { - 'inDir':values['inDir'], + 'inDir':inDir, 'humFile':values['humFile'], 'aoi':values['aoi'], 'projDir':projDir,