bidspath_from_layout

bidspath_from_layout(layout: BIDSLayout, **kwargs) BIDSPath[source][source]

Searches a BIDSLayout for a file and returns a BIDSPath to it.

Parameters:
  • layout (BIDSLayout) – The BIDSLayout to search.

  • **kwargs (dict) – The parameters passed to BIDSLayout.get()

Returns:

BIDS_path – The BIDSPath to the file.

Return type:

BIDSPath