Skip to content

Commit

Permalink
reingest scan if it is repeated with the same ScanID (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotan authored Jun 5, 2024
1 parent 2abddc7 commit 05c540b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2024-06-05 Jan Kotanski <jankotan@gmail.com>
* reingest scan metadata if it is repeated with the same ScanID (#647)
* tagged as v4.2.1

2024-06-03 Jan Kotanski <jankotan@gmail.com>
* adapt append_scicat_dataset to _%05d and _{ScanID:05d} formatting (#643)
* tagged as v4.2.0
Expand Down
7 changes: 7 additions & 0 deletions nxstools/pyeval/scdataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import tango
import json
import time
import re

# from sardana.macroserver.macro import Macro

Expand Down Expand Up @@ -119,6 +120,12 @@ def append_scicat_dataset(macro, status_info=True, reingest=False):
scanname, entryname, sid, scanname, sid)
if reingest:
sname = "%s:%s" % (sname, time.time())
else:
skip_acq = get_env_var(macro, 'NeXusSkipAcquisitionModes', [])
if isinstance(skip_acq, str):
skip_acq = re.split(r"[-;,.\s]\s*", skip_acq)
if "INIT" in skip_acq:
sname = "%s:%s" % (sname, time.time())

# auto grouping
grouping = bool(get_env_var(macro, 'SciCatAutoGrouping', False))
Expand Down
2 changes: 1 addition & 1 deletion nxstools/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
""" NXS tools release version"""

#: (:obj:`str`) package version
__version__ = "4.2.0"
__version__ = "4.2.1"

0 comments on commit 05c540b

Please sign in to comment.