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

Update JSON with convention #171

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

NathanMolinier
Copy link
Contributor

@NathanMolinier NathanMolinier commented Jul 4, 2024

Description

This PR update JSON sidecars according to our new convention. Only 1766/3148 json in the folder derivatives/labels will be modified by this PR. The remaining json in the folder derivatives/labels will be modified by this other PR.

The script used to generate these JSON sidecars is available here.

Examples

Example 1

Before

{
    "Author": "Sandrine Bedard",
    "Date": "2021-06-08 15:06:05"
}

After

{
    "SpatialReference": "orig",
    "GeneratedBy": [
        {
            "Name": "Manual",
            "Author": "Sandrine Bedard",
            "Date": "2021-06-08 15:06:05"
        }
    ]
}

Example 2

Before

{
    "GeneratedBy": [
        {
            "Name": "sct_register_multimodal",
            "Version": "SCT v6.1",
            "Description": "Warp from T2w discs labels"
        }
    ]
}

After

{
    "SpatialReference": "orig",
    "GeneratedBy": [
        {
            "Name": "sct_register_multimodal",
            "Version": "SCT v6.1",
            "Description": "Warp from T2w discs labels"
        }
    ]
}

@NathanMolinier NathanMolinier added bug Something isn't working enhancement New feature or request labels Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants