diff --git a/CHANGES.rst b/CHANGES.rst index 0d4f67a..3ae6154 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -2,6 +2,14 @@ Unreleased ========== * Python 3.13 or newer, following `SPEC 0 `__ (tested on 3.13 to 3.15). +* New command ``tfmgr generate atlases|cohorts|templates|dataset|all [--check] [PATH]`` + writes the files generated from metadata: the atlas descriptions and the cohorts table + of a template, and templates.tsv and dataset_description.json at the root of the + Archive. dataset_description.json follows BIDS 1.11 (``DatasetType: derivative``, + ``License: LicenseRef-TemplateFlow-PerTemplate``), and its ``TemplateFlowVersion`` + becomes 2.0.0 once every template is at 2.0.0. ``--check`` changes nothing and exits + with 1 when there are files to write. +* ``tfmgr add`` writes the generated files of the template before validating it. * New internals for ``tfmgr generate`` and ``tfmgr migrate``: ``GitTree`` reads a template from a git commit without checking it out, ``collect_archive`` gathers what the Archive's files and checks need from its templates, and ``renames_problems`` checks a diff --git a/README.rst b/README.rst index 7472f27..cef3842 100644 --- a/README.rst +++ b/README.rst @@ -19,6 +19,23 @@ and values are only checked with ``--level content``, which needs ``tfmanager[co and the images' data. The command exits with 1 when there are errors, and 2 when it could not run. +Generating files +---------------- +Some files are generated from the metadata, and ``tfmgr validate`` reports them when they +are missing or out of date. ``tfmgr generate`` writes them:: + + tfmgr generate all tpl-MyTemplate # atlas descriptions and cohorts table + tfmgr generate all path/to/templateflow # templates.tsv and dataset_description.json + tfmgr generate all tpl-MyTemplate --check # list what would change; change nothing + +In a template, ``atlases`` writes an ``atlas-