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

BIDSLayout.get_collections / bids.variables #21

Merged
merged 14 commits into from
Dec 14, 2022

Conversation

adelavega
Copy link
Collaborator

At this point, keeping track of blocking issues:

Questions:

  • Does it make sense to add a Mixin for get_collections, to clean base class clean, or should we just add to BIDSLayout. It's primarily a convenience function that we could remove entirely

@@ -64,8 +64,57 @@ def get_tr(self, derivatives=False, **entities):
.format(entities))
return all_trs.pop()

class BIDSLayoutVariablesMixin:
def get_collections(self, level, types=None, variables=None, merge=False,
Copy link
Collaborator

Choose a reason for hiding this comment

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

does get_collections() already work using the current state of BIDSLayout? would be great :-)

Copy link
Collaborator Author

@adelavega adelavega Dec 13, 2022

Choose a reason for hiding this comment

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

Not quite yet. It's not terribly far though.

@adelavega
Copy link
Collaborator Author

Looks like this is working now! Haven't tested it fully but it runs through on ds005

@adelavega adelavega merged commit 42ac711 into rf/ancp-layout Dec 14, 2022
@effigies effigies deleted the get_collections branch December 14, 2022 16:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants