Commit ecb8a57
authored
bids2table 2.0 (#48)
* Remove all old files
* Initial commit (v2)
* Add entities utilities
- BIDS schema loaded from `bidschematools` following previous impl (thx
@nx10).
- Add Arrow schema construction
- Otherwise, trying to make much simpler. No dataclass complexity.
* Add back bids-examples submodule
* Add initial impl of indexing
New indexing uses just `Path` operations and string processing.
Generates arrow tables directly with no other dependencies. ~400 LOC.
Supports indexing cloud-hosted datasets via `cloudpathlib`.
Thanks to @nx10 for these suggestions.
* Update README.md
* Move cloudpathlib stuff to another module
* Add dataset and subject ID to progress bar
* Minor changes
- Don't raise error, just warn and return empty table if a dataset is empty.
- Add package-level exports.
* Add `batch_index_dataset` and other misc cleanup
* Add initial CLI
TODO: test
* Accept list of globs in CLI and other misc cleanup
Accepting unexpanded glob patterns in CLI is useful for cloud sources.
May as well accept a list of them. Few other misc cleanup (simplify log
messages, progress bar).
* Logging improvements
- Format large file counts in human readable units.
- Change verbosity order: progress bar -> warnings.
- Filter repeated logging messages.
- Initialize logger state in each process when using
`ProcessPoolExecutor`.
* Add CI workflows
* Remove `BIDSEntity` enum; add `get_column_names`
A dynamically defined global enum for the column names is a bit awkward
and not that useful. The column names are not available statically in
the editor for example. Remove and replace with a `get_column_names`
function which dynamically defines the column name enum.
* Add docstrings and update README.md
* Clone with submodules in CI
* Add codecov.yaml
* Update codecov.yaml
Make informational, don't fail CI jobs
* Minor change to logging behavior
Disable progress bar by default in python index functions. Enable
progress bar by default in CLI. Add a `--no-progress` flag.
* Minor cleanup
* Add tests to run CLI
* Install with s3 extra in CI
* Remove unnecessary `path.is_dir()` call
* Update README.md before release1 parent c944b15 commit ecb8a57
52 files changed
Lines changed: 3341 additions & 7544 deletions
File tree
- .github/workflows
- benchmark
- indexing
- figures
- query
- bids2table
- extractors
- example
- tests
- test_extractors
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
13 | | - | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | | - | |
17 | | - | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 27 | + | |
| 28 | + | |
31 | 29 | | |
32 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | 28 | | |
31 | | - | |
| 29 | + | |
32 | 30 | | |
| 31 | + | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | 13 | | |
16 | 14 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
30 | 18 | | |
31 | | - | |
32 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
33 | 24 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
0 commit comments