From 113734db6318641b64a8bb7e341e90bc57c2b289 Mon Sep 17 00:00:00 2001 From: q-posev Date: Thu, 6 May 2021 09:20:10 +0200 Subject: [PATCH] portability path for mac + fix missing numerical variables --- tools/generator.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/generator.py b/tools/generator.py index b93fc06..2a66a43 100644 --- a/tools/generator.py +++ b/tools/generator.py @@ -151,8 +151,8 @@ for fname in files_funcs_groups: std_dtype_out = '24.16e' std_dtype_in = 'lf' elif params['dtype'] == 'int64_t': - std_dtype_out = 'ld' - std_dtype_in = 'ld' + std_dtype_out = 'lld' + std_dtype_in = 'lld' templine1 = templine2.replace('$group_dset_std_dtype_out$', std_dtype_out) templine2 = templine1.replace('$group_dset_std_dtype_in$', std_dtype_in) @@ -326,8 +326,8 @@ for fname in files_funcs_nums: if '_text' in fname: templ_path = templ_path_text - for dim in dim_variables.keys(): - #for dim in numbers.keys(): + #for dim in dim_variables.keys(): + for dim in numbers.keys(): grname = dim.split('_')[0] with open(join(templ_path,fname), 'r') as f_in : with open(join(templ_path,fname_new), 'a') as f_out : @@ -363,8 +363,8 @@ for fname in ['def_hdf5.c', 'basic_hdf5.c', 'basic_text_group.c', templine2 = templine1.replace('$group_dset$', dset) f_out.write(templine2) elif '$group_num$' in line or '$GROUP_NUM$' in line : - for num in dim_variables.keys(): - #for num in numbers.keys(): + #for num in dim_variables.keys(): + for num in numbers.keys(): templine1 = line.replace('$GROUP_NUM$', num.upper()) templine2 = templine1.replace('$group_num$', num) f_out.write(templine2)