nxs/test/napi/test_field_creation.py
raw| 1 | import nxs.napi as napi |
| 2 | import unittest |
| 3 | |
| 4 | class test_field_creation_hdf5(unittest.TestCase): |
| 5 | mode = "w5" |
| 6 | filename = "test_file_creation_hdf5.nxs" |
| 7 | |
| 8 | def setUp(self): |
| 9 | self._file = napi.NeXus(self.filename,self.mode) |
| 10 | self._file.makegroup("entry","NXentry") |
| 11 | self._file.opengroup("entry") |
| 12 | |
| 13 | def tearDown(self): |
| 14 | self._file.close() |
| 15 | |
| 16 | |
| 17 | def test_field_without_compression(self): |
| 18 | self._file.makedata("data1",'uint32',(3,4)) |
| 19 | self._file.opendata("data1") |
| 20 |