Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tomotools
tomoscan
Commits
0ae9589c
Commit
0ae9589c
authored
Nov 26, 2020
by
Tomas Farago
Browse files
[HDF5TomoScan] add an other way to find a valid nxtomo entry
parent
6791a226
Pipeline
#37927
passed with stages
in 18 minutes and 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tomoscan/esrf/hdf5scan.py
View file @
0ae9589c
...
...
@@ -268,6 +268,13 @@ class HDF5TomoScan(TomoScanBase):
if
"definition"
in
node
.
attrs
and
node
.
attrs
[
"definition"
].
lower
()
==
"nxtomo"
:
_logger
.
info
(
node
.
name
+
" is recognized as an NXtomo class."
)
return
True
elif
(
"instrument"
in
node
and
"NX_class"
in
node
[
"instrument"
].
attrs
and
node
[
"instrument"
].
attrs
[
"NX_class"
]
==
"NXinstrument"
):
instrument_node
=
node
[
"instrument"
]
return
"detector"
in
node
[
"instrument"
]
else
:
return
False
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment