1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-12-22 12:23:54 +01:00

Silence dead code warnings with clang

This commit is contained in:
Anthony Scemama 2023-06-02 14:57:20 +02:00
parent 5e87794180
commit d8a37b26bf

View File

@ -611,13 +611,13 @@ def get_detailed_num_dict (configuration: dict) -> dict:
tmp_dict.update(get_dtype_dict(v2[0], 'num')) tmp_dict.update(get_dtype_dict(v2[0], 'num'))
if v2[0] in ['int', 'dim', 'dim readonly']: if v2[0] in ['int', 'dim', 'dim readonly']:
tmp_dict['trex_json_int_type'] = v2[0] tmp_dict['trex_json_int_type'] = v2[0]
tmp_dict['is_index'] = 'false' tmp_dict['is_index'] = '(false)'
elif v2[0] in ['index']: elif v2[0] in ['index']:
tmp_dict['trex_json_int_type'] = v2[0] tmp_dict['trex_json_int_type'] = v2[0]
tmp_dict['is_index'] = 'file->one_based' tmp_dict['is_index'] = 'file->one_based'
else: else:
tmp_dict['trex_json_int_type'] = '' tmp_dict['trex_json_int_type'] = ''
tmp_dict['is_index'] = 'false' tmp_dict['is_index'] = '(false)'
num_dict[tmp_num] = tmp_dict num_dict[tmp_num] = tmp_dict
@ -721,7 +721,7 @@ def split_dset_dict_detailed (datasets: dict) -> tuple:
if 'index' in datatype: if 'index' in datatype:
tmp_dict['is_index'] = 'file->one_based' tmp_dict['is_index'] = 'file->one_based'
else: else:
tmp_dict['is_index'] = 'false' tmp_dict['is_index'] = '(false)'
# add the list of dimensions # add the list of dimensions
tmp_dict['dims'] = [dim.replace('.','_') for dim in v[1]] tmp_dict['dims'] = [dim.replace('.','_') for dim in v[1]]