From b21ccbddf04abda068f40fb22bd88ded84b23b4a Mon Sep 17 00:00:00 2001 From: Florez Ospina Juan Felipe Date: Mon, 1 Jul 2024 16:17:25 +0200 Subject: [PATCH 1/2] Renamed script_name to processing_file. --- src/hdf5_lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hdf5_lib.py b/src/hdf5_lib.py index 8e58bf0..a20a6cf 100644 --- a/src/hdf5_lib.py +++ b/src/hdf5_lib.py @@ -527,7 +527,7 @@ def save_processed_dataframe_to_hdf5(df, annotator, output_filename): # src_hdf5 # Prepare file dictionary file_dict = { - 'name': project_level_attributes['script_name'], + 'name': project_level_attributes['processing_file'], 'attributes_dict': high_level_attributes, 'datasets': [{ 'name': "data_table", From fe2e9400fd36afdf944907ae44308ab34d2560e9 Mon Sep 17 00:00:00 2001 From: Florez Ospina Juan Felipe Date: Mon, 1 Jul 2024 16:19:28 +0200 Subject: [PATCH 2/2] Modified created at function to output date time and time zone --- src/g5505_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/g5505_utils.py b/src/g5505_utils.py index 082e906..b9e61c3 100644 --- a/src/g5505_utils.py +++ b/src/g5505_utils.py @@ -103,7 +103,8 @@ def created_at(): now_tz_aware = now.astimezone() tz = now_tz_aware.strftime('%z') #created_at = now_tz_aware.strftime('%Y-%m-%d_%H-%M-%S')+'_utcoffset_' + tz - created_at = now_tz_aware.strftime('%Y-%m-%d')+'_UTC-OFST_' + tz + #created_at = now_tz_aware.strftime('%Y-%m-%d')+'_UTC-OFST_' + tz + created_at = now_tz_aware.strftime('%Y-%m-%d %H:%M:%S') +'_UTC-OFST_' + tz # Make created at timestamp with tz information #created_at = now.isoformat() return created_at