Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

RF: Unify Caret-XML-style metadata structure as dict-like#1091

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
effigies merged 7 commits intonipy:masterfromeffigies:enh/unify_xml_metadata
Feb 25, 2022

Conversation

@effigies
Copy link
Member

We have two implementations of the same structure in GIFTI and CIFTI-2. The Cifti one is much nicer to deal with, but also a little short of a straight drop-in replacement fordict().

Spurred by writing a parser forCaretSpecFiles in#1090. Mostly used the Cifti implementation, but dropped thedifference_update() (not sure why this exists, so don't want to copy it without a use case). Used a private_data object to allow theGiftiMetaData.data to be a deprecated list view.

Scheduled dropping most of the custom bits of each subclass for 6.0 to give a good long warning period.

@codecov
Copy link

codecovbot commentedFeb 23, 2022
edited
Loading

Codecov Report

Merging#1091 (6bc86df) intomaster (e7e1d46) willincrease coverage by0.02%.
The diff coverage is100.00%.

Impacted file tree graph

@@            Coverage Diff             @@##           master    #1091      +/-   ##==========================================+ Coverage   92.27%   92.29%   +0.02%==========================================  Files          99      100       +1       Lines       12228    12247      +19       Branches     2392     2393       +1     ==========================================+ Hits        11283    11303      +20  Misses        621      621+ Partials      324      323       -1
Impacted FilesCoverage Δ
nibabel/cifti2/cifti2_axes.py98.52% <ø> (+0.17%)⬆️
nibabel/caret.py100.00% <100.00%> (ø)
nibabel/cifti2/cifti2.py96.65% <100.00%> (-0.04%)⬇️
nibabel/gifti/gifti.py93.23% <100.00%> (-0.04%)⬇️
nibabel/gifti/parse_gifti_fast.py86.12% <100.00%> (+0.05%)⬆️

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last updatee7e1d46...6bc86df. Read thecomment docs.

Copy link

@jbtevesjbteves left a comment

Choose a reason for hiding this comment

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

LGTM with the caveat that I'm not sure what the approval checklist for nibabel looks like 😉

Copy link
Contributor

@htwangtwhtwangtw left a comment

Choose a reason for hiding this comment

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

LGTM! A more parsable gifti metadata makes me really happy.

@effigies
Copy link
MemberAuthor

@effigieseffigies merged commit75c2b85 intonipy:masterFeb 25, 2022
@effigieseffigies deleted the enh/unify_xml_metadata branchFebruary 25, 2022 15:44
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

2 more reviewers

@htwangtwhtwangtwhtwangtw approved these changes

@jbtevesjbtevesjbteves approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@effigies@htwangtw@jbteves

[8]ページ先頭

©2009-2025 Movatter.jp