pybids
pybids copied to clipboard
.add_derivatives error when Pipepine Name already in use: incomplete error message
I accidentally called layout.add_derivatives(dir) twice, resulting in an attempt to add twice the same directory in the derivatives on my layout:
layout.add_derivatives(dir)
layout.add_derivatives(dir)
The error message read as follows:
bids.exceptions.BIDSDerivativesValidationError: Pipeline name '%s' has already been added to this BIDSLayout. Every added pipeline must have a unique name!
In this error message, it seems like the '%s' doesn't get replaced by the actual name of my pipeline. Looks like a little bug, isn't?
Good catch. Any interest in opening a PR to fix it?
Done!