Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Invalid filters are ignored / not parameterizable #12

Open
adelavega opened this issue Dec 5, 2022 · 4 comments
Open

Invalid filters are ignored / not parameterizable #12

adelavega opened this issue Dec 5, 2022 · 4 comments

Comments

@adelavega
Copy link
Collaborator

See: bids-standard#863 (comment)

@adelavega adelavega changed the title Invalid filters are handeled differently Invalid filters are handled differently Dec 5, 2022
@adelavega
Copy link
Collaborator Author

bids-standard#596

I suggest we don't allow invalid filters in the future, and force error

@adelavega adelavega changed the title Invalid filters are handled differently Invalid filters are ignored / not parameterizable Dec 5, 2022
@erdalkaraca
Copy link
Collaborator

there is also a related bug in ancpbids repo:
ANCPLabOldenburg/ancp-bids#58

@adelavega
Copy link
Collaborator Author

In pybids we currently have invalid_filters which allows you to set the behavior. This was done for backwards compatability, as by default it throws an error, but it'll allow you to set invalid_filters='ignore' to replicate old behavior.

I think we can probably get rid of it soon.

@adelavega adelavega added ancp and removed ancp labels Dec 8, 2022
@adelavega
Copy link
Collaborator Author

Currently, ancpbids is equivalent to ignore_filters='allow', such that if you pass an invalid filter, it will return no results. It is more helpful to raise an error, but requires knowing all valid keys (possibly including meta-data). "drop" drops the invalid key and performs the query.

I suggest we start by trying to implement ignore_filters='raise in ancpbids, to see if its possible without major peformance issues.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants