Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include indexer in add_derivatives call #1009

Merged
merged 2 commits into from
Jul 7, 2023

Conversation

wasciutto
Copy link
Contributor

@wasciutto wasciutto commented Jul 6, 2023

Small bug fix which passes the indexer object into add_derivatives along with indexer kwargs.

Previously, index options could only be included in derivative datasets with index kwargs, which are deprecated.

This includes the indexer object in derivative BIDSLayout instantiation.

closes #970

instantiation of derivative dataset via kwargs.
@wasciutto
Copy link
Contributor Author

WIP - haven't tested this yet

@codecov
Copy link

codecov bot commented Jul 6, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.01 ⚠️

Comparison is base (fd7f0d9) 83.42% compared to head (965cae6) 83.42%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1009      +/-   ##
==========================================
- Coverage   83.42%   83.42%   -0.01%     
==========================================
  Files          38       38              
  Lines        4290     4289       -1     
  Branches     1100     1099       -1     
==========================================
- Hits         3579     3578       -1     
  Misses        515      515              
  Partials      196      196              
Impacted Files Coverage Δ
bids/layout/layout.py 88.46% <100.00%> (-0.03%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Collaborator

@adelavega adelavega left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, glad it was an easy fix.

@adelavega
Copy link
Collaborator

@effigies since you made an edit I will wait on you to merge

@effigies effigies marked this pull request as ready for review July 7, 2023 19:06
@effigies effigies merged commit 65c78cd into bids-standard:master Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BIDSLayoutIndexer not passed to derivative layouts
3 participants