-
Notifications
You must be signed in to change notification settings - Fork 122
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
BIDSLayoutIndexer
's **filters
argument not working as expected
#1062
Comments
Yes, it looks like Lines 243 to 280 in 20007e5
If you're interested in addressing this, it's probably worth noting that |
Interestingly, after adding the if clause below to
|
I can't promise I'll have time to dig into this soon. Please feel free to keep working on this if you like. It would be good to get out a new version of pybids, with Python 3.12 support. Do you consider this a blocker, and if so, how much time would you like to try to get something in before we release? |
I don't think it is a blocker (I already implemented a workaround in my own code by using the |
If it improves things, sure. If you want to dig deeper for a more complete fix first, that's fine, too. I am not using this feature, so I'm unlikely to dig into it myself, and I'm inclined to follow your lead as someone who uses the feature. |
OK, I reopened it. It restores some functionality, so I think it improves things, albeit slightly (and hopefully does not break anything). I should have time to dig into it a bit more in the upcoming weeks, so feel free to move forward with the release. |
Hello again! Following the fix in PR #1049 for the error mentioned in #1050, I've noticed that the
BIDSLayoutIndexer
is still not functioning as expected. As an example, despite setting filters fordatatype
andsuffix
, the indexer returns all entities when running the following code:I expected the
get_datatypes()
andget_suffixes()
methods to return only the entities that match the filters set in theBIDSLayoutIndexer
. But, the methods return all entities:While workarounds are possible using
layout.get()
andBIDSLayoutIndexer(ignore=...)
, I wanted to raise this issue to bring it to the devs' attention.The text was updated successfully, but these errors were encountered: