Buncha stuff, sorry I wasn't pushing

This commit is contained in:
Abe Levitan
2021-10-26 13:11:11 -04:00
parent f84e441843
commit 1b5ef2271c
8 changed files with 105 additions and 46 deletions
+3 -3
View File
@@ -66,9 +66,9 @@ def get_entry_info(cxi_file):
'program_name']
metadata = {attr: str(e1[attr][()].decode()) for attr in metadata_attrs
if attr in e1}
datetime_attrs = ['start_time',
'end_time']
for attr in datetime_attrs:
for attr in metadata_attrs:
if attr in e1:
try:
metadata[attr] = dateutil.parser.parse(str(e1[attr][()].decode()))