Skip to content

Commit

Permalink
enh: modify the BIDS session identifier to indicate wave 2
Browse files Browse the repository at this point in the history
While preparing TheAxonLab/hcph-dataset#63 and TheAxonLab/hcph-dataset#65,
I realized that all pilot sessions started with 0.
Instead, we can start them by "2" and this way all the pilot sessions
corresponding to wave 2 will be grouped together when listing files.

Resolves: #488.
Amends: #490.
  • Loading branch information
oesteban committed Aug 20, 2024
1 parent 3ef73c3 commit 6912cc5
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 73 deletions.
2 changes: 1 addition & 1 deletion code/sessions/hcph-sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def generate(
table["sessionwise_order"] = [1, 2, 3] * num_sessions

table["bids_id"] = [
f"{row['session']:03d}{row['sessionwise_order']:02d}"
f"2{row['session']:02d}{row['sessionwise_order']:02d}"
f"{SCANNER_NAME_MAPPINGS[row['device']]}"
for _, row in table.iterrows()
]
Expand Down
72 changes: 36 additions & 36 deletions code/sessions/schedule-wave2.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
| day | device | session | PE | bids_id |
|:-----------|:---------|----------:|:-----|----------:|
| 2024-08-20 | Prisma | 1 | AP | 00101060 |
| 2024-08-20 | VidaFit | 1 | RL | 00102030 |
| 2024-08-20 | Vida07 | 1 | PA | 00103034 |
| 2024-08-21 | Prisma | 2 | RL | 00201060 |
| 2024-08-21 | VidaFit | 2 | AP | 00202030 |
| 2024-08-21 | Vida07 | 2 | RL | 00203034 |
| 2024-08-22 | Prisma | 3 | LR | 00301060 |
| 2024-08-22 | Vida07 | 3 | PA | 00302034 |
| 2024-08-22 | VidaFit | 3 | AP | 00303030 |
| 2024-08-23 | Prisma | 4 | PA | 00401060 |
| 2024-08-23 | Vida07 | 4 | RL | 00402034 |
| 2024-08-23 | VidaFit | 4 | RL | 00403030 |
| 2024-08-24 | Prisma | 5 | RL | 00501060 |
| 2024-08-24 | VidaFit | 5 | PA | 00502030 |
| 2024-08-24 | Vida07 | 5 | LR | 00503034 |
| 2024-08-25 | Prisma | 6 | PA | 00601060 |
| 2024-08-25 | VidaFit | 6 | LR | 00602030 |
| 2024-08-25 | Vida07 | 6 | RL | 00603034 |
| 2024-08-26 | Prisma | 7 | AP | 00701060 |
| 2024-08-26 | VidaFit | 7 | AP | 00702030 |
| 2024-08-26 | Vida07 | 7 | AP | 00703034 |
| 2024-08-27 | Prisma | 8 | LR | 00801060 |
| 2024-08-27 | Vida07 | 8 | LR | 00802034 |
| 2024-08-27 | VidaFit | 8 | PA | 00803030 |
| 2024-08-28 | Prisma | 9 | PA | 00901060 |
| 2024-08-28 | Vida07 | 9 | AP | 00902034 |
| 2024-08-28 | VidaFit | 9 | LR | 00903030 |
| 2024-08-29 | Prisma | 10 | LR | 01001060 |
| 2024-08-29 | Vida07 | 10 | AP | 01002034 |
| 2024-08-29 | VidaFit | 10 | PA | 01003030 |
| 2024-08-30 | Prisma | 11 | AP | 01101060 |
| 2024-08-30 | VidaFit | 11 | LR | 01102030 |
| 2024-08-30 | Vida07 | 11 | PA | 01103034 |
| 2024-08-31 | Prisma | 12 | RL | 01201060 |
| 2024-08-31 | Vida07 | 12 | LR | 01202034 |
| 2024-08-31 | VidaFit | 12 | RL | 01203030 |
| 2024-08-20 | Prisma | 1 | AP | 20101060 |
| 2024-08-20 | VidaFit | 1 | RL | 20102030 |
| 2024-08-20 | Vida07 | 1 | PA | 20103034 |
| 2024-08-21 | Prisma | 2 | RL | 20201060 |
| 2024-08-21 | VidaFit | 2 | AP | 20202030 |
| 2024-08-21 | Vida07 | 2 | RL | 20203034 |
| 2024-08-22 | Prisma | 3 | LR | 20301060 |
| 2024-08-22 | Vida07 | 3 | PA | 20302034 |
| 2024-08-22 | VidaFit | 3 | AP | 20303030 |
| 2024-08-23 | Prisma | 4 | PA | 20401060 |
| 2024-08-23 | Vida07 | 4 | RL | 20402034 |
| 2024-08-23 | VidaFit | 4 | RL | 20403030 |
| 2024-08-24 | Prisma | 5 | RL | 20501060 |
| 2024-08-24 | VidaFit | 5 | PA | 20502030 |
| 2024-08-24 | Vida07 | 5 | LR | 20503034 |
| 2024-08-25 | Prisma | 6 | PA | 20601060 |
| 2024-08-25 | VidaFit | 6 | LR | 20602030 |
| 2024-08-25 | Vida07 | 6 | RL | 20603034 |
| 2024-08-26 | Prisma | 7 | AP | 20701060 |
| 2024-08-26 | VidaFit | 7 | AP | 20702030 |
| 2024-08-26 | Vida07 | 7 | AP | 20703034 |
| 2024-08-27 | Prisma | 8 | LR | 20801060 |
| 2024-08-27 | Vida07 | 8 | LR | 20802034 |
| 2024-08-27 | VidaFit | 8 | PA | 20803030 |
| 2024-08-28 | Prisma | 9 | PA | 20901060 |
| 2024-08-28 | Vida07 | 9 | AP | 20902034 |
| 2024-08-28 | VidaFit | 9 | LR | 20903030 |
| 2024-08-29 | Prisma | 10 | LR | 21001060 |
| 2024-08-29 | Vida07 | 10 | AP | 21002034 |
| 2024-08-29 | VidaFit | 10 | PA | 21003030 |
| 2024-08-30 | Prisma | 11 | AP | 21101060 |
| 2024-08-30 | VidaFit | 11 | LR | 21102030 |
| 2024-08-30 | Vida07 | 11 | PA | 21103034 |
| 2024-08-31 | Prisma | 12 | RL | 21201060 |
| 2024-08-31 | Vida07 | 12 | LR | 21202034 |
| 2024-08-31 | VidaFit | 12 | RL | 21203030 |
72 changes: 36 additions & 36 deletions code/sessions/schedule-wave2.tsv
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
day device session PE bids_id
2024-08-20 Prisma 1 AP 00101060
2024-08-20 VidaFit 1 RL 00102030
2024-08-20 Vida07 1 PA 00103034
2024-08-21 Prisma 2 RL 00201060
2024-08-21 VidaFit 2 AP 00202030
2024-08-21 Vida07 2 RL 00203034
2024-08-22 Prisma 3 LR 00301060
2024-08-22 Vida07 3 PA 00302034
2024-08-22 VidaFit 3 AP 00303030
2024-08-23 Prisma 4 PA 00401060
2024-08-23 Vida07 4 RL 00402034
2024-08-23 VidaFit 4 RL 00403030
2024-08-24 Prisma 5 RL 00501060
2024-08-24 VidaFit 5 PA 00502030
2024-08-24 Vida07 5 LR 00503034
2024-08-25 Prisma 6 PA 00601060
2024-08-25 VidaFit 6 LR 00602030
2024-08-25 Vida07 6 RL 00603034
2024-08-26 Prisma 7 AP 00701060
2024-08-26 VidaFit 7 AP 00702030
2024-08-26 Vida07 7 AP 00703034
2024-08-27 Prisma 8 LR 00801060
2024-08-27 Vida07 8 LR 00802034
2024-08-27 VidaFit 8 PA 00803030
2024-08-28 Prisma 9 PA 00901060
2024-08-28 Vida07 9 AP 00902034
2024-08-28 VidaFit 9 LR 00903030
2024-08-29 Prisma 10 LR 01001060
2024-08-29 Vida07 10 AP 01002034
2024-08-29 VidaFit 10 PA 01003030
2024-08-30 Prisma 11 AP 01101060
2024-08-30 VidaFit 11 LR 01102030
2024-08-30 Vida07 11 PA 01103034
2024-08-31 Prisma 12 RL 01201060
2024-08-31 Vida07 12 LR 01202034
2024-08-31 VidaFit 12 RL 01203030
2024-08-20 Prisma 1 AP 20101060
2024-08-20 VidaFit 1 RL 20102030
2024-08-20 Vida07 1 PA 20103034
2024-08-21 Prisma 2 RL 20201060
2024-08-21 VidaFit 2 AP 20202030
2024-08-21 Vida07 2 RL 20203034
2024-08-22 Prisma 3 LR 20301060
2024-08-22 Vida07 3 PA 20302034
2024-08-22 VidaFit 3 AP 20303030
2024-08-23 Prisma 4 PA 20401060
2024-08-23 Vida07 4 RL 20402034
2024-08-23 VidaFit 4 RL 20403030
2024-08-24 Prisma 5 RL 20501060
2024-08-24 VidaFit 5 PA 20502030
2024-08-24 Vida07 5 LR 20503034
2024-08-25 Prisma 6 PA 20601060
2024-08-25 VidaFit 6 LR 20602030
2024-08-25 Vida07 6 RL 20603034
2024-08-26 Prisma 7 AP 20701060
2024-08-26 VidaFit 7 AP 20702030
2024-08-26 Vida07 7 AP 20703034
2024-08-27 Prisma 8 LR 20801060
2024-08-27 Vida07 8 LR 20802034
2024-08-27 VidaFit 8 PA 20803030
2024-08-28 Prisma 9 PA 20901060
2024-08-28 Vida07 9 AP 20902034
2024-08-28 VidaFit 9 LR 20903030
2024-08-29 Prisma 10 LR 21001060
2024-08-29 Vida07 10 AP 21002034
2024-08-29 VidaFit 10 PA 21003030
2024-08-30 Prisma 11 AP 21101060
2024-08-30 VidaFit 11 LR 21102030
2024-08-30 Vida07 11 PA 21103034
2024-08-31 Prisma 12 RL 21201060
2024-08-31 Vida07 12 LR 21202034
2024-08-31 VidaFit 12 RL 21203030

0 comments on commit 6912cc5

Please sign in to comment.