Repository navigation
Commit 97118ca
authored
Read a blank dat_path as no raw data file (#61)
A dataset with no raw data file on disk has a blank dat_path in params.py.
SpikeInterface writes one for recordings with an unknown source, such as
simulated recordings.
Path('') is Path('.'), so a blank entry was resolved against dir_path and
silently became the dataset directory itself. The model then reported the
directory as its raw data file, and get_ephys_reader() warned twice about an
unknown file extension before giving up.
Drop blank entries instead, so dat_path ends up empty, which is the path the
model already supports for datasets with no raw data.1 parent d99464b commit 97118ca
3 files changed
Lines changed: 66 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
332 | 329 | | |
333 | 330 | | |
334 | 331 | | |
| |||
1416 | 1413 | | |
1417 | 1414 | | |
1418 | 1415 | | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
1419 | 1433 | | |
1420 | 1434 | | |
1421 | 1435 | | |
| |||
1438 | 1452 | | |
1439 | 1453 | | |
1440 | 1454 | | |
1441 | | - | |
1442 | | - | |
1443 | | - | |
| 1455 | + | |
| 1456 | + | |
1444 | 1457 | | |
1445 | 1458 | | |
1446 | 1459 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
138 | 178 | | |
139 | 179 | | |
140 | 180 | | |
| |||
0 commit comments