8.5.5. pymodaq_utils.categorizing module

pymodaq_utils.categorizing.add_category_layers(dimension_dict, remote_items=None, mock_items=None)[source]

Add category layers to a dimension dictionary. Uses categorize_items for each dimension.

Parameters:

dimension_dict – {dimension: [items]}

Returns: {dimension: {category: [items]}}

pymodaq_utils.categorizing.categorize_items(item_list, remote_items=None, mock_items=None)[source]

Core function: categorize any list of items into Mock/Plugin/Remote.

Parameters:
  • item_list – List of items to categorize

  • remote_items – Custom set of remote items (optional)

  • mock_items – Custom set of mock items (optional)

Returns: dict {category: [items]} with only non-empty categories

pymodaq_utils.categorizing.find_last_index(list_children=None, name_prefix='', format_string='02.0f')[source]