Update bids/layout/layout.py
Don't double hit if derivatives
@@ -343,7 +343,7 @@ class BIDSLayout(Layout):
if derivatives == True:
derivatives = list(self.derivatives.keys())
- if derivatives:
+ elif derivatives:
derivatives = listify(derivatives)
# Separate entity kwargs from metadata kwargs
