Skip to content

Commit

Permalink
add support ScanFileInScanNameDir env variable (#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotan authored Jul 10, 2024
1 parent 2b90cd1 commit 7b6186a
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 8 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2024-07-10 Jan Kotanski <[email protected]>
* add support ScanFileInScanNameDir env variable
* tagged as v4.10.0

2024-07-10 Jan Kotanski <[email protected]>
* improve support for eiger RoiMode attribute
* tagged as v4.9.1
Expand Down
2 changes: 1 addition & 1 deletion man/nxscollect.1
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "NXSCOLLECT" "1" "Jul 09, 2024" "4.9" "NXSTools"
.TH "NXSCOLLECT" "1" "Jul 10, 2024" "4.10" "NXSTools"
.SH NAME
nxscollect \- upload external images into NeXus/HDF5 file
.SH DESCRIPTION
Expand Down
2 changes: 1 addition & 1 deletion man/nxsconfig.1
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "NXSCONFIG" "1" "Jul 09, 2024" "4.9" "NXSTools"
.TH "NXSCONFIG" "1" "Jul 10, 2024" "4.10" "NXSTools"
.SH NAME
nxsconfig \- read NeXus Configuration Server settings
.SH DESCRIPTION
Expand Down
2 changes: 1 addition & 1 deletion man/nxscreate.1
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "NXSCREATE" "1" "Jul 09, 2024" "4.9" "NXSTools"
.TH "NXSCREATE" "1" "Jul 10, 2024" "4.10" "NXSTools"
.SH NAME
nxscreate \- create NeXus Configuration component
.SH DESCRIPTION
Expand Down
2 changes: 1 addition & 1 deletion man/nxsdata.1
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "NXSDATA" "1" "Jul 09, 2024" "4.9" "NXSTools"
.TH "NXSDATA" "1" "Jul 10, 2024" "4.10" "NXSTools"
.SH NAME
nxsdata \- run NeXus Data Writer
.SH DESCRIPTION
Expand Down
2 changes: 1 addition & 1 deletion man/nxsetup.1
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "NXSETUP" "1" "Jul 09, 2024" "4.9" "NXSTools"
.TH "NXSETUP" "1" "Jul 10, 2024" "4.10" "NXSTools"
.SH NAME
nxsetup \- set NeXDaTaS Tango Server environment up
.SH DESCRIPTION
Expand Down
2 changes: 1 addition & 1 deletion man/nxsfileinfo.1
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "NXSFILEINFO" "1" "Jul 09, 2024" "4.9" "NXSTools"
.TH "NXSFILEINFO" "1" "Jul 10, 2024" "4.10" "NXSTools"
.SH NAME
nxsfileinfo \- show metadata of the NeXus file
.SH DESCRIPTION
Expand Down
2 changes: 1 addition & 1 deletion man/nxstools.1
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "NXSTOOLS" "1" "Jul 09, 2024" "4.9" "NXSTools"
.TH "NXSTOOLS" "1" "Jul 10, 2024" "4.10" "NXSTools"
.SH NAME
nxstools \- nxstools Documentation
.sp
Expand Down
4 changes: 4 additions & 0 deletions nxstools/pyeval/scdataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ def append_scicat_dataset(macro, status_info=True, reingest=False):
if grouping:
commands = []
fdir = macro.getEnv('ScanDir')
if bool(get_env_var(macro, 'ScanFileInScanNameDir', False)):
fdir = os.path.dirname(os.path.abspath(fdir))
try:
sm = dict(get_env_var(macro, 'SciCatMeasurements', {}))
except Exception:
Expand Down Expand Up @@ -172,6 +174,8 @@ def append_scicat_record(macro, sname, status_info=True):
"""
# get beamtime id
fdir = macro.getEnv('ScanDir')
if bool(get_env_var(macro, 'ScanFileInScanNameDir', False)):
fdir = os.path.dirname(os.path.abspath(fdir))
bmtfpath = get_env_var(macro, "BeamtimeFilePath", "/gpfs/current")
bmtfprefix = get_env_var(
macro, "BeamtimeFilePrefix", "beamtime-metadata-")
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.9.1"
__version__ = "4.10.0"

0 comments on commit 7b6186a

Please sign in to comment.