Skip to content

Commit

Permalink
update for the fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotan committed Jul 14, 2024
1 parent c81d874 commit e78f648
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nxstools/pyeval/scdataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def append_scicat_dataset(macro, status_info=True, reingest=False):
sname = "%s:%s" % (sname, time.time())

fdir = macro.getEnv('ScanDir')
snmode = get_env_var(macro, 'ScanNames', False)
snmode = get_env_var(macro, 'ScanNames', None)
pdir = None
if snmode is not None:
if bool(snmode):
Expand Down Expand Up @@ -182,7 +182,8 @@ def append_scicat_record(macro, sname, status_info=True):
"""
# get beamtime id
fdir = macro.getEnv('ScanDir')
if bool(get_env_var(macro, 'ScanNames', False)):
snmode =
if get_env_var(macro, 'ScanNames', None):
fdir = os.path.dirname(os.path.abspath(fdir))
bmtfpath = get_env_var(macro, "BeamtimeFilePath", "/gpfs/current")
bmtfprefix = get_env_var(
Expand Down

0 comments on commit e78f648

Please sign in to comment.