Skip to content

Refactor check_and_format_names() #598

@JoeZiminski

Description

@JoeZiminski

Currently check_and_format_names() is used to format names (e.g. add missing "sub-" or "ses-" prefixes, expand the @TO@ flag) for folder creation, but is also used in data_transfer.py. However, the check in data transfers was leading to problems when new keys are added (#510) or changes in validation (#575), on which the validation feature was turned off. It is not really necessary to perform this validation during transfer, only in folder creation.

Therefore, this bloated function can be stripped down, using only format_names in transfer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions