1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2025-01-08 04:18:47 +01:00
Commit Graph

93 Commits

Author SHA1 Message Date
842b0efaa8 use strncat instead of strcat 2021-06-08 14:59:03 +02:00
2e210bc212 bring back the max_str_len argument for read_ functions [hdf5] 2021-06-08 14:50:59 +02:00
36e85039d5 make file names consistent with the C test 2021-06-08 14:39:04 +02:00
d57f2004ba Merge branch 'master' into add-strings 2021-06-04 18:09:26 +02:00
31bf17c66a Merge branch 'master' into evgeny 2021-06-04 17:30:51 +02:00
5b1cf03aaf [WIP] add has/read/write functions for string attributes [front,hdf5] 2021-06-04 15:33:50 +02:00
4fceb6624d fix error handling in write_group_dset 2021-06-03 17:33:31 +02:00
40e9aa9234 introduce max_str_len parameter 2021-06-03 16:13:11 +02:00
aa4251b943 read_group_dset can operate on char* directly instead of char** 2021-06-03 13:41:43 +02:00
693f8d3846 fix file reopening for writing new variables 2021-06-02 20:19:39 +02:00
7a9d078859 remove append mode 2021-06-02 14:40:23 +02:00
f45fee6cbf explicit types for strings [HDF5] 2021-06-01 10:41:00 +02:00
753c767ce2 first working prototype for string datasets [HDF5] 2021-05-31 16:42:11 +02:00
b5a6987758 first prototype of read/write string datasets 2021-05-31 13:26:52 +02:00
42f81b2cc6 prepare templates and files for datasets with strings [all] 2021-05-27 15:14:01 +02:00
70531b0ff6 more general group_dset_h5_dtype variable in the templates [hdf5] 2021-05-27 13:59:45 +02:00
Evgeny Posenitskiy
29d927675e
Major refactoring of the generator script (#47)
* minor cleaning

* create functions for dictionary parsers in the external file

* remove files_exclude since post-processing does the job

* no need to have group_group_dset when propagatin dsets

* oneliner for paths to templates

* add dset_per_group dict

* add function to iteratively populate string based on triggers list

* added recursive replacer for numbers

* add recursive replaces for datasets

* add function for text groups  [iterative+recursive upd]

* do not define triggers in the master script

* transition to helper dictionaries

* cleaning

* comment main code blocks

* rearrange parameters

* add documentation strings to the functions

* minor cleaning and changes

* adapt build_trexio script

* add consisteny check for dimensioning variables
2021-05-26 19:11:46 +02:00
57655a8344 add error message for an attempt to overwrite dimensioning variables 2021-05-06 17:44:31 +02:00
d3b35ae453 discard portability patch 2021-05-06 09:35:48 +02:00
q-posev
48d300674a portability patch for mac 2021-05-06 09:19:05 +02:00
9c2b240418 more portable HDF5 back end 2021-05-04 20:22:58 +02:00
5f4f94646f replace ULLONG with UINT64 2021-05-04 14:16:12 +02:00
Evgeny Posenitskiy
8defdaa0c0
org-mode to html conversion for the documentation website (#41)
* working static html doc website generated from org-mode files

* fix build_doc script

* add gitignore

* add gitignore

* clean html garbage

* documented hdf5

* documented text back end
2021-04-09 16:45:44 +02:00
7e55933fea make consistent hierarchy in org-mode files 2021-04-08 11:40:50 +02:00
b656917323 consistent naming init/deinit instead init/finalize in back ends 2021-04-08 11:31:51 +02:00
42df2253eb better error handling 2021-03-30 16:03:34 +02:00
068beacb07 working has_ functions [all] 2021-03-30 11:50:02 +02:00
5fc0371276 Compliant with CERT 2021-03-29 00:37:56 +02:00
086a34d5b1 const 2021-03-29 00:34:56 +02:00
3f2261ea9b Undefined num_id in HDF5 2021-03-29 00:34:03 +02:00
000aad336c Fixed: file not const when write 2021-03-28 16:31:15 +02:00
83fa39ee30 Fixed unsigned int < 0 2021-03-28 16:24:35 +02:00
700803528f Format for unsigned long + overflows in struct 2021-03-28 16:22:14 +02:00
f8dae45c10 Changed i++ into ++i in loops 2021-03-28 15:48:27 +02:00
1b0a60f2fe use strncpy instead of strcpy to avoid possible buffer overflows 2021-03-28 11:18:50 +02:00
aa160d9bea make build scripts consistent 2021-03-25 11:41:13 +01:00
44f615857b add shell scripts to compile populated files 2021-03-13 20:21:32 +01:00
9244e6f0c0 fix templators 2021-03-10 16:55:21 +01:00
ca234fb569 dimension in write_dset populated properply + error handling 2021-03-10 11:48:43 +01:00
ba0f14a6cc TODO: properly populate dimensions in write_dset 2021-03-09 16:31:12 +01:00
50841e1937 wip: generate read/write_dset functions 2021-03-09 15:48:32 +01:00
ebc7aa5d40 dummy generator for auxiliary files 2021-03-09 11:58:47 +01:00
30927be21d initial templator 2021-03-05 16:50:26 +01:00