Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RF+ENH: provide bids schema driven support for manipulation of bids filenames #544

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

yarikoptic
Copy link
Member

@yarikoptic yarikoptic commented Feb 10, 2022

Closes #452

A plan (somewhat):

This would open for a better structuring of BIDS support code etc.

All bids.utils are imported within bids/__init__.py so there should be
no effect on imports from heudiconv.bids
ATM we will need only these two files to establish consistent
order of the entities in the filenames.  Later we might want to
carry a more complete copy of the schema, or may be eventually some
proper  bidsschema  python package would appear to provide desired
functionality anyways
=== Do not change lines below ===
{
 "chain": [],
 "cmd": "python3 -m isort -m3 --fgw 2 --tc {outputs}",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [
  "heudiconv/bids/*py",
  "heudiconv/bids/tests/*py"
 ],
 "pwd": "."
}
^^^ Do not change lines above ^^^
@codecov
Copy link

codecov bot commented Mar 29, 2022

Codecov Report

Merging #544 (6ce5422) into master (cb2fd91) will increase coverage by 0.18%.
The diff coverage is 99.23%.

@@            Coverage Diff             @@
##           master     #544      +/-   ##
==========================================
+ Coverage   81.21%   81.39%   +0.18%     
==========================================
  Files          41       45       +4     
  Lines        3784     3817      +33     
==========================================
+ Hits         3073     3107      +34     
+ Misses        711      710       -1     
Impacted Files Coverage Δ
heudiconv/info.py 100.00% <ø> (ø)
heudiconv/bids/schema.py 98.33% <98.33%> (ø)
heudiconv/bids/__init__.py 100.00% <100.00%> (ø)
heudiconv/bids/consts.py 100.00% <100.00%> (ø)
heudiconv/bids/tests/test_schema.py 100.00% <100.00%> (ø)
heudiconv/bids/tests/test_utils.py 100.00% <100.00%> (ø)
heudiconv/bids/utils.py 88.95% <100.00%> (ø)
heudiconv/convert.py 87.25% <100.00%> (+0.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cb2fd91...6ce5422. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Increment the minor version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dire need: BIDSFile helper
1 participant