Commit 252becc3 authored by payno's avatar 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
......@@ -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):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment