aolabNeuro / aolabNeuro/analyze

target indices assumed to start at zero

未关闭
#424 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Python
星标
7
派生
0
平均合并
22 小时 29 分钟
30 天内合并 PR
2

描述

in `data.bmi3d.tabulate_behavior_data`, the target indices are assumed to start at zero, but that is not always the case, e.g. for the `out_2D` generator

```
target_idx = [code[np.isin(code, target_codes)][0] - target_codes[0] if np.sum(np.isin(code, target_codes)) == 1 else 0 for code in tr_seg]
target_location = get_target_locations(preproc_dir, subject, te, date, target_idx).tolist()
```

https://github.com/aolabNeuro/analyze/blob/e6a14f83cdcc411a539157216418a01042681333/aopy/data/bmi3d.py#L723C9-L724C100

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。