From 8608e5d54182971ccea6494253fe90da203eaa79 Mon Sep 17 00:00:00 2001 From: q-posev Date: Tue, 15 Jun 2021 18:40:48 +0200 Subject: [PATCH] enable metadata I/O --- tools/generator.py | 5 ----- tools/generator_tools.py | 9 +++++++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/generator.py b/tools/generator.py index 58c4d9a..03b3c96 100644 --- a/tools/generator.py +++ b/tools/generator.py @@ -7,13 +7,8 @@ trex_config = read_json(config_file) # --------------------------------------------------------------------------- # # -------------------------------- [WIP] ------------------------------------ # -print('Metadata I/O currently not supported') -# TODO, for now remove metadata-related stuff -del trex_config['metadata'] # for now remove rdm from config because it functions are hardcoded del trex_config['rdm'] -# TODO, for now remove char-related stuff -print('Strings I/O currently not supported') # --------------------------------------------------------------------------- # # -------------------- GET ATTRIBUTES FROM THE CONFIGURATION ---------------- # diff --git a/tools/generator_tools.py b/tools/generator_tools.py index 988a5b1..7f96175 100644 --- a/tools/generator_tools.py +++ b/tools/generator_tools.py @@ -556,9 +556,14 @@ def split_dset_dict_detailed (datasets: dict) -> tuple: group_dset_std_dtype_in = '" SCNd64 "' elif v[0] == 'str': datatype = 'char*' - group_dset_h5_dtype = 'c_s1' - group_dset_f_dtype_default = 'character(len=*)' + group_dset_h5_dtype = '' + group_dset_f_dtype_default = '' + group_dset_f_dtype_double = '' + group_dset_f_dtype_single = '' group_dset_dtype_default = 'char*' + group_dset_dtype_double = '' + group_dset_dtype_single = '' + default_prec = '' group_dset_std_dtype_out = 's' group_dset_std_dtype_in = 's'