Module trase.tools.pcs.contexts.retrieve
Context helpers.
Functions
def get_context_country_commodity(context_id: int, cur=None) ‑> Tuple[int, int]-
Return country and commodity ids for context.
def get_context_datasets(context_id: int, cur=None) ‑> List[int]-
Return flows references for context.
def get_context_id(country_id: int, commodity_id: int, cur=None) ‑> int-
Return context id from country id and commodity id.
def get_context_references(context_id: int, cur=None) ‑> List[Tuple[int, str]]-
Return all reference ids and titles for a context, without checking if a reference has flows.