allensdk.internal.api.queries.wkf_lims_queries module¶
-
allensdk.internal.api.queries.wkf_lims_queries.
wkf_path_from_attachable
(lims_connection: allensdk.internal.api.PostgresQueryMixin, wkf_type_name: List[str], attachable_type: str, attachable_id: int) → Dict[str, str][source]¶ Get the path to well known files, selecting files of a specific type with a specified attachable ID and attachable_type.
Parameters: - lims_connection: PostgresQueryMixin
- wkf_type_name: List[str]
i.e. ‘StimulusPickle’ or ‘RawEyeTrackingVideoMetadata’ etc.
- attachable_type: str
the value of well_known_file.attachable_type to look for
- attachable_id: int
the value of well_known_file.attachable_id to look for
Returns: - wkf_path_lookup: Dict[str, str]
a dict mapping attachable_type to absolute file path
Notes
Will raise an error if more than one result is returned for a single type