pybids icon indicating copy to clipboard operation
pybids copied to clipboard

.add_derivatives error when Pipepine Name already in use: incomplete error message

Open arovai opened this issue 2 years ago • 2 comments

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?

arovai avatar Apr 29 '22 10:04 arovai

Good catch. Any interest in opening a PR to fix it?

effigies avatar Apr 29 '22 11:04 effigies

Done!

arovai avatar Apr 29 '22 20:04 arovai