AllenNeuralDynamics / AllenNeuralDynamics/ficus

Add VARS to each file directory where custom variables can be applied to all files

Ouverte
#32 0 commentaires 0 réactions 1 personne assignée Réclamée par @jessy-liao Voir sur GitHub
Langage dominant
Python
Étoiles
1
Forks
0
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

```
defaults/
└── open_ephys/
├── VARS
├── config.yml
├── config_test.yml
└── setup_abc.json
computers/
└── wdt10burno/
└── open_ephys/
├── VARS
└── config.yml
peripherals/
└── treadmill123.yml
```

VARS is a dict with variables and corresponding values. Example:
```
"treadmill": "peripherals/treadmill123.yml"
"device_a": "com4"
```

Behaviors:
- User pulls ``defaults/open_ephys/config.yml``, for all jinja variables ``{{VARS.treadmill}}`` it will search for the corresponding key in the VARS file in the current directory.
- Need to determine does the variables also follow the same merging pattern as normal config files. Example: if we pull ``/computers/wdt10burno/open_ephys/config.yml`` it will merge with the config.yml in defaults. Will it also merge the two vars (existing keys get overridden, new keys get appended)?
- If we do have this merge behavior for variables, introduce a new endpoint to easily track all variable files that were used for a certain config.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.