get_id_to_field_fn¶
- get_id_to_field_fn(ms_to_id_to_field)[source]¶
Return a function that can convert field IDs to a field name.
Takes a dict of dicts, first key mapping measurement set name and second key mapping numeric field ID to field name, eg.
{'a.ms': {0: 'field 1', 1: 'field 2'}
- Parameters:
ms_to_id_to_field -- dict of vis : field ID : field name
- Returns:
set of field names (or field IDs if names are not unique)