bids-standard / pybids-refactor

Python tools for querying and manipulating BIDS datasets.
https://bids-standard.github.io/pybids/
MIT License
0 stars 1 forks source link

Get all meta-data keys in dataset #38

Closed adelavega closed 1 year ago

adelavega commented 1 year ago

get_entities(metadata=True) returns all entity's unique values AND all meta-data unique values, computed on the fly.

This is used in the __repr__ function to determine which functions to respond to (i.e. get_RepetitionTime).

There are various possible optimizations here to prevent unnecessary computation, such as memoizing, and only computing meta-data if normal entities don't match.

Related #37

Depends on #30, so merging into that PR