From ac95c2cd04e700deecdbf81fd2bc55bd00c4db14 Mon Sep 17 00:00:00 2001 From: Jan Kotanski Date: Sun, 14 Jul 2024 12:00:28 +0200 Subject: [PATCH] update for the fix --- nxstools/pyeval/scdataset.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nxstools/pyeval/scdataset.py b/nxstools/pyeval/scdataset.py index 3149b5e9..1ad88fee 100644 --- a/nxstools/pyeval/scdataset.py +++ b/nxstools/pyeval/scdataset.py @@ -182,8 +182,7 @@ def append_scicat_record(macro, sname, status_info=True): """ # get beamtime id fdir = macro.getEnv('ScanDir') - snmode = - if get_env_var(macro, 'ScanNames', None): + if get_env_var(macro, 'ScanNames', None) is not None: fdir = os.path.dirname(os.path.abspath(fdir)) bmtfpath = get_env_var(macro, "BeamtimeFilePath", "/gpfs/current") bmtfprefix = get_env_var(