Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tomotools
nxtomomill
Commits
252becc3
Commit
252becc3
authored
Nov 19, 2020
by
payno
Browse files
[test][h5_to_nx] add creation of HDF5Tomoscan once file are created
parent
f53dcad0
Pipeline
#37501
passed with stages
in 4 minutes and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nxtomomill/test/test_converter.py
View file @
252becc3
...
...
@@ -36,6 +36,7 @@ import numpy
import
os
from
nxtomomill
import
converter
from
nxtomomill.test.utils.bliss
import
MockBlissAcquisition
from
tomoscan.esrf.hdf5scan
import
HDF5TomoScan
from
glob
import
glob
...
...
@@ -251,6 +252,10 @@ class TestH5ToNxConverter(unittest.TestCase):
self
.
assertEqual
(
len
(
files
),
4
)
# try to create HDF5TomoScan from those to insure this is valid
# and check z values for example
for
res_tuple
in
res
:
scan
=
HDF5TomoScan
(
scan
=
res_tuple
[
0
],
entry
=
res_tuple
[
1
])
if
hasattr
(
scan
,
"z_translation"
):
self
.
assertTrue
(
scan
.
z_translation
is
not
None
)
class
TestDetectorDetection
(
unittest
.
TestCase
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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