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

Do not issue warning if cannot parse _task entity #621

Merged
merged 1 commit into from
Jan 26, 2023

Conversation

yarikoptic
Copy link
Member

Also adjusted docstring to note that now _task- can be used in many other modalities

❯ git grep -l -B4 -E 'task: (r|o)'
src/schema/README.md
src/schema/rules/files/raw/anat.yaml
src/schema/rules/files/raw/beh.yaml
src/schema/rules/files/raw/channels.yaml
src/schema/rules/files/raw/eeg.yaml
src/schema/rules/files/raw/func.yaml
src/schema/rules/files/raw/ieeg.yaml
src/schema/rules/files/raw/meg.yaml
src/schema/rules/files/raw/nirs.yaml
src/schema/rules/files/raw/pet.yaml
src/schema/rules/files/raw/task.yaml

and overall -- even if required for some modality (e.g. func) IMHO we should not redo bids-validator functionality here. It should be validator to report oddities (may be we should bolt on integration with basic validation present in bidsschematools).

Closes #613

Also adjusted docstring to note that now _task- can be used in many other modalities

    ❯ git grep -l -B4 -E 'task: (r|o)'
    src/schema/README.md
    src/schema/rules/files/raw/anat.yaml
    src/schema/rules/files/raw/beh.yaml
    src/schema/rules/files/raw/channels.yaml
    src/schema/rules/files/raw/eeg.yaml
    src/schema/rules/files/raw/func.yaml
    src/schema/rules/files/raw/ieeg.yaml
    src/schema/rules/files/raw/meg.yaml
    src/schema/rules/files/raw/nirs.yaml
    src/schema/rules/files/raw/pet.yaml
    src/schema/rules/files/raw/task.yaml

and overall -- even if required for some modality (e.g. func) IMHO we should
not redo bids-validator functionality here.  It should be validator to report
oddities (may be we should bolt on integration with basic validation present in
bidsschematools).
@yarikoptic yarikoptic requested a review from tsalo January 25, 2023 18:04
@codecov
Copy link

codecov bot commented Jan 25, 2023

Codecov Report

Base: 81.29% // Head: 81.28% // Decreases project coverage by -0.01% ⚠️

Coverage data is based on head (d262c55) compared to base (ccc2eac).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #621      +/-   ##
==========================================
- Coverage   81.29%   81.28%   -0.01%     
==========================================
  Files          41       41              
  Lines        3817     3816       -1     
==========================================
- Hits         3103     3102       -1     
  Misses        714      714              
Impacted Files Coverage Δ
heudiconv/convert.py 87.22% <ø> (-0.04%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@tsalo tsalo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change makes sense to me.

@yarikoptic yarikoptic merged commit 6f627e2 into nipy:master Jan 26, 2023
@yarikoptic yarikoptic added the patch Increment the patch version when merged label Jan 26, 2023
@yarikoptic yarikoptic deleted the enh-warnings branch February 17, 2023 15:45
@github-actions
Copy link

🚀 PR was released in v0.12.0 🚀

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

Successfully merging this pull request may close these issues.

Some warnings and errors with heudiconv 0.11.6
2 participants