Skip to content

Mandatory vs Optional components in pybids_inputs #293

Description

@pvandyken

Currently if an input is missing, we just print a warning saying no inputs are found and continue with the workflow. If that component is actually needed, you'll typically end up with a key error at some point downstream.

I'd like a way to control this behaviour. Two basic means come to mind:

  • Allow an optional or mandatory attribute which causes missing items to error out immediately or silently continue
  • Have a missing attribute that takes either error, warn, silent

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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