Fix the failing tests

This commit is contained in:
Abe Levitan
2022-04-18 17:18:20 -07:00
parent f3cee949e0
commit 101e969eda
7 changed files with 35 additions and 26 deletions
+4 -1
View File
@@ -63,7 +63,9 @@ def get_entry_info(cxi_file):
metadata_attrs = ['title',
'experiment_identifier',
'experiment_description',
'program_name']
'program_name',
'start_time',
'end_time']
metadata = {attr: str(e1[attr][()].decode()) for attr in metadata_attrs
if attr in e1}
@@ -481,6 +483,7 @@ def add_entry_info(cxi_file, metadata):
cxi_file['entry_1'].create_dataset(key, data=asnumpy)
def add_sample_info(cxi_file, metadata):
"""Adds a dictionary of entry metadata to the entry_1/sample_1 group of a cxi file object