niworkflows.utils.testing module

niworkflows.utils.testing.combine_entities(**entities)[source]
niworkflows.utils.testing.generate_bids_skeleton(target_path, bids_config)[source]

Converts a BIDS directory in dictionary form to a file structure.

The BIDS configuration can either be a YAML or JSON file, or :obj:dict: object.

Parameters:
  • target_path (str) – Path to generate BIDS directory at (must not exist)

  • bids_config (dict or str) – Configuration on how to create the BIDS directory.

niworkflows.utils.testing.to_json(filename, data)[source]