pycaravel: This module is designed to simplify continuous integration (CI) of data from multiple projects.
Note
This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the gallery for the big picture.
- caravel.parser._expand_keys(entities)[source]ΒΆ
Generate multiple replacement queries based on all combinations of values.
Examples
>>> entities = {'subject': ['01', '02'], 'session': ['1', '2'], 'task': ['rest', 'finger']} >>> out = _expand_entities(entities) >>> len(out) 8 >>> {'subject': '01', 'session': '1', 'task': 'rest'} in out True >>> {'subject': '02', 'session': '1', 'task': 'rest'} in out True >>> {'subject': '01', 'session': '2', 'task': 'rest'} in out True >>> {'subject': '02', 'session': '2', 'task': 'rest'} in out True >>> {'subject': '01', 'session': '1', 'task': 'finger'} in out True >>> {'subject': '02', 'session': '1', 'task': 'finger'} in out True >>> {'subject': '01', 'session': '2', 'task': 'finger'} in out True >>> {'subject': '02', 'session': '2', 'task': 'finger'} in out True
Follow us