From ba45479a8a6e4a968a603810a4a03428abe7c01b Mon Sep 17 00:00:00 2001 From: q-posev Date: Fri, 23 Jul 2021 15:50:31 +0200 Subject: [PATCH] add package_version attribute to metadata group --- trex.org | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/trex.org b/trex.org index 829ade4..80d146f 100644 --- a/trex.org +++ b/trex.org @@ -33,27 +33,29 @@ arrays are 0-based. Hence, we introduce the ~index~ type which is an authors of the file, and a textual description. #+NAME: metadata - | Variable | Type | Dimensions (for arrays) | Description | - |---------------+-------+-------------------------+------------------------------------------| - | ~code_num~ | ~int~ | | Number of codes used to produce the file | - | ~code~ | ~str~ | ~(metadata.code_num)~ | Names of the codes used | - | ~author_num~ | ~int~ | | Number of authors of the file | - | ~author~ | ~str~ | ~(metadata.author_num)~ | Names of the authors of the file | - | ~description~ | ~str~ | | Text describing the content of file | + | Variable | Type | Dimensions (for arrays) | Description | + |-------------------+-------+-------------------------+------------------------------------------| + | ~code_num~ | ~int~ | | Number of codes used to produce the file | + | ~code~ | ~str~ | ~(metadata.code_num)~ | Names of the codes used | + | ~author_num~ | ~int~ | | Number of authors of the file | + | ~author~ | ~str~ | ~(metadata.author_num)~ | Names of the authors of the file | + | ~package_version~ | ~str~ | | TREXIO version used to produce the file | + | ~description~ | ~str~ | | Text describing the content of file | #+CALL: json(data=metadata, title="metadata") #+RESULTS: - :results: + :RESULTS: #+begin_src python :tangle trex.json "metadata": { - "code_num" : [ "int", [] ] - , "code" : [ "str", [ "metadata.code_num" ] ] - , "author_num" : [ "int", [] ] - , "author" : [ "str", [ "metadata.author_num" ] ] - , "description" : [ "str", [] ] + "code_num" : [ "int", [] ] + , "code" : [ "str", [ "metadata.code_num" ] ] + , "author_num" : [ "int", [] ] + , "author" : [ "str", [ "metadata.author_num" ] ] + , "package_version" : [ "str", [] ] + , "description" : [ "str", [] ] } , #+end_src - :end: + :END: * Electron (electron group)