AllenNeuralDynamics / AllenNeuralDynamics/ficus

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

Đang mở
#32 0 bình luận 0 reaction 1 người được giao Được @jessy-liao nhận Xem trên GitHub
Ngôn ngữ chính
Python
Star
1
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

```
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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.