1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2025-01-03 10:06:01 +01:00

split dataset files in _str and _data groups

This commit is contained in:
q-posev 2021-05-27 15:03:13 +02:00
parent 70531b0ff6
commit 7ddb9228f1
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ for fname in files_todo['num']:
recursive_populate_file(fname, template_paths, detailed_num) recursive_populate_file(fname, template_paths, detailed_num)
# populate has/read/write_dset functions with recursive scheme # populate has/read/write_dset functions with recursive scheme
for fname in files_todo['dset']: for fname in files_todo['dset_data']:
recursive_populate_file(fname, template_paths, detailed_dset_nostr) recursive_populate_file(fname, template_paths, detailed_dset_nostr)
# populate group-related functions with mixed (iterative+recursive) scheme [text backend] # populate group-related functions with mixed (iterative+recursive) scheme [text backend]

View File

@ -39,7 +39,7 @@ def get_files_todo(source_files: dict) -> dict:
files_todo = {} files_todo = {}
#files_todo['all'] = list(filter(lambda x: 'read' in x or 'write' in x or 'has' in x or 'hrw' in x or 'flush' in x or 'free' in x, all_files)) #files_todo['all'] = list(filter(lambda x: 'read' in x or 'write' in x or 'has' in x or 'hrw' in x or 'flush' in x or 'free' in x, all_files))
files_todo['all'] = [f for f in all_files if 'read' in f or 'write' in f or 'has' in f or 'flush' in f or 'free' in f or 'hrw' in f] files_todo['all'] = [f for f in all_files if 'read' in f or 'write' in f or 'has' in f or 'flush' in f or 'free' in f or 'hrw' in f]
for key in ['dset', 'num', 'group']: for key in ['dset_data', 'dset_str', 'num', 'group']:
files_todo[key] = list(filter(lambda x: key in x, files_todo['all'])) files_todo[key] = list(filter(lambda x: key in x, files_todo['all']))
files_todo['group'].append('struct_text_group_dset.h') files_todo['group'].append('struct_text_group_dset.h')