mirror of
https://github.com/cdtools-developers/cdtools.git
synced 2026-11-13 09:43:55 +01:00
Fix the failing tests
This commit is contained in:
1 parent
f3cee949e0
commit
101e969eda
7 files changed
+35
-26
No files matched your search
@@ -116,9 +116,12 @@ def test_add_entry_info(tmp_path):
|
||||
with data.create_cxi(tmp_path / 'test_add_entry_info.cxi') as f:
|
||||
data.add_entry_info(f, entry_info)
|
||||
|
||||
|
||||
with h5py.File(tmp_path / 'test_add_entry_info.cxi','r') as f:
|
||||
read_entry_info = data.get_entry_info(f)
|
||||
|
||||
print(read_entry_info)
|
||||
|
||||
for key in entry_info:
|
||||
if isinstance(entry_info[key], np.ndarray):
|
||||
assert np.allclose(entry_info[key], read_entry_info[key])
|
||||
|
||||
Reference in new issue
Block a user