Module Expr Str ImportFrom alias ImportFrom alias Import alias Import alias ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias alias alias alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad keyword Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body For NameStore Call AttributeLoad NameLoad attr body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body For NameStore Call AttributeLoad NameLoad attr body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Str body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call AttributeLoad NameLoad attr body For NameStore Call AttributeLoad NameLoad attr body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BoolOpAnd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad For NameStore Call AttributeLoad NameLoad attr body Assign NameStore BoolOpAnd NameLoad Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr body Assign NameStore BoolOpAnd NameLoad Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body If CompareIsNot NameLoad NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad orelse For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareEq AttributeLoad NameLoad attr NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr body If CompareEq NameLoad AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore BoolOpOr NameLoad ListLoad Assign NameStore Call NameLoad NameLoad NameLoad While CompareGt Call NameLoad Call AttributeLoad NameLoad attr Str ListLoad Num body For NameStore Call AttributeLoad NameLoad attr Str ListLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str ListLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str ListLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str For TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr body Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call AttributeLoad NameLoad attr Str ListLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call AttributeLoad NameLoad attr Str ListLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Return ListComp Call NameLoad NameLoad comprehension NameStore NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Return ListComp Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr Str Str keyword Call AttributeLoad NameLoad attr Str Num NameLoad If CompareIs AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad body Expr Call NameLoad BinOpMod Str NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body If CompareIs Call NameLoad NameLoad Str NameLoad NameLoad body Assign AttributeStore NameLoad attr Dict If CompareIs Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad NameLoad Return TupleLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore Call NameLoad Assign NameStore ListLoad Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr Str ListLoad body If CompareNotIn Str NameLoad body Expr Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Index Str If NameLoad body Continue Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Index Str orelse If CompareNotIn NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index Str orelse If UnaryOpNot Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str NameLoad Str Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Continue Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str ListLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Dict If CompareEq Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Assign NameStore Call NameLoad Call AttributeLoad Call NameLoad NameLoad NameLoad NameLoad attr Str Dict NameLoad If CompareIs Call AttributeLoad NameLoad attr Str NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpMod Str SubscriptLoad NameLoad Index Str Str For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return Dict Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad NameLoad Index Str attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A 
This modules contains the logic to parse and validate JSON files in the OpenXC
message set format.
 __future__ print_function collections defaultdict N/A operator N/A logging xml_to_json merge_database_into_mapping parse_database structures Command CanBus DiagnosticMessage openxc.utils fatal_error merge find_file load_json_from_search_path N/A LOG N/A N/A logging getLogger __name__ MessageSet N/A object N/A __init__ N/A N/A self name N/A N/A N/A N/A self name name N/A N/A self buses N/A defaultdict CanBus N/A N/A self initializers N/A N/A N/A self loopers N/A N/A N/A self commands N/A N/A N/A self extra_sources N/A set N/A valid_buses N/A N/A self N/A N/A N/A valid_buses N/A bus N/A bus N/A N/A N/A self buses values N/A N/A bus valid N/A N/A sorted valid_buses key N/A N/A operator attrgetter controller N/A active_diagnostic_messages N/A N/A self N/A N/A N/A message N/A N/A self all_diagnostic_messages N/A N/A N/A message enabled N/A N/A N/A message N/A all_diagnostic_messages N/A N/A self N/A N/A N/A message N/A sorted N/A self diagnostic_messages key N/A N/A N/A x N/A N/A N/A x id N/A x mode N/A x pid N/A N/A N/A message N/A active_messages N/A N/A self N/A N/A N/A bus N/A N/A N/A self buses values N/A N/A message N/A N/A bus active_messages N/A N/A N/A message N/A all_messages N/A N/A self N/A N/A N/A bus N/A N/A N/A self buses values N/A N/A message N/A N/A bus sorted_messages N/A N/A N/A message N/A enabled_signals N/A N/A self N/A N/A N/A signal N/A N/A self all_signals N/A N/A N/A signal enabled N/A N/A N/A signal N/A active_commands N/A N/A self N/A N/A N/A command N/A N/A self all_commands N/A N/A N/A command enabled N/A N/A N/A command N/A all_commands N/A N/A self N/A N/A N/A command N/A sorted N/A self commands key N/A N/A operator attrgetter name N/A N/A N/A command N/A all_signals N/A N/A self N/A N/A N/A message N/A N/A self all_messages N/A N/A signal N/A N/A message sorted_signals N/A N/A N/A signal N/A validate N/A N/A self N/A N/A N/A N/A N/A N/A self validate_name N/A N/A self validate_messages N/A validate_messages N/A N/A self N/A N/A N/A valid True N/A message N/A N/A self active_messages N/A N/A valid N/A valid N/A N/A message validate N/A signal N/A N/A self enabled_signals N/A N/A valid N/A valid N/A N/A signal validate N/A valid N/A validate_name N/A N/A self N/A N/A N/A N/A N/A self name None N/A N/A N/A N/A LOG warning N/A missing message set (%s) N/A self name N/A False N/A True N/A lookup_message_index N/A N/A self message N/A N/A N/A N/A i candidate N/A enumerate N/A N/A self active_messages N/A N/A N/A N/A candidate id N/A message id N/A N/A i N/A lookup_bus N/A N/A self name controller N/A None None N/A N/A N/A name None N/A N/A N/A N/A N/A self buses get name None N/A N/A bus N/A N/A N/A self buses values N/A N/A N/A N/A bus controller controller N/A N/A bus N/A lookup_bus_index N/A N/A self bus_name N/A N/A N/A N/A index bus N/A enumerate N/A N/A self valid_buses N/A N/A N/A bus_name N/A bus name N/A N/A index N/A None N/A _message_count N/A N/A self N/A N/A N/A N/A len N/A list N/A N/A self all_messages N/A N/A JsonMessageSet N/A MessageSet N/A parse N/A N/A cls filename search_paths skip_disabled_mappings N/A None False N/A N/A search_paths N/A search_paths N/A N/A data N/A load_json_from_search_path filename search_paths N/A N/A N/A len N/A N/A data get parents N/A 0 N/A N/A parent_filename N/A N/A data get parents N/A N/A N/A parent_data N/A load_json_from_search_path parent_filename search_paths N/A data N/A merge parent_data data N/A N/A N/A N/A data N/A parents remove parent_filename N/A message_set N/A cls N/A N/A data get name generic N/A N/A message_set initializers N/A N/A data get initializers N/A N/A N/A message_set loopers N/A N/A data get loopers N/A N/A N/A message_set buses N/A N/A cls _parse_buses data N/A N/A message_set bit_numbering_inverted N/A N/A data get bit_numbering_inverted None N/A N/A message_set extra_sources N/A set N/A N/A data get extra_sources N/A set N/A mapping_config N/A N/A message_set _parse_mappings data search_paths skip_disabled_mappings N/A N/A N/A N/A message_set initializers extend N/A mapping_config N/A initializers N/A N/A N/A N/A message_set loopers extend N/A mapping_config N/A loopers N/A N/A N/A N/A message_set extra_sources update N/A mapping_config N/A extra_sources N/A N/A message_id message N/A N/A N/A N/A data get messages N/A items N/A N/A N/A message N/A id message_id N/A N/A N/A N/A mapping_config N/A messages append message N/A N/A N/A N/A mapping_config N/A diagnostic_messages extend N/A N/A data get diagnostic_messages N/A N/A N/A message_set diagnostic_messages N/A N/A cls _parse_diagnostic_messages message_set N/A mapping_config N/A diagnostic_messages N/A N/A N/A N/A mapping_config N/A commands extend N/A N/A data get commands N/A N/A N/A message_set commands N/A N/A cls _parse_commands N/A mapping_config N/A commands N/A N/A N/A message_set _parse_messages N/A mapping_config N/A messages N/A message_set N/A classmethod _parse_commands N/A N/A cls commands N/A N/A N/A N/A N/A Command command_data N/A command_data commands N/A classmethod _parse_diagnostic_messages N/A N/A cls message_set messages N/A N/A N/A N/A N/A DiagnosticMessage message_set message_data N/A message_data messages N/A classmethod _parse_buses N/A N/A cls data N/A N/A N/A buses N/A N/A N/A bus_name bus_data N/A N/A N/A N/A data get buses N/A items N/A N/A N/A buses N/A bus_name N/A CanBus name bus_name default_raw_can_mode N/A N/A data get raw_can_mode off default_max_message_frequency N/A N/A data get max_message_frequency 0 bus_data N/A N/A N/A N/A buses N/A bus_name speed None N/A N/A N/A fatal_error N/A Bus %s is missing the 'speed' attribute bus_name N/A buses N/A classmethod _parse_database N/A N/A self database_filename N/A N/A N/A N/A N/A getattr self _database_cache None None N/A N/A N/A self _database_cache N/A N/A N/A N/A N/A N/A self _database_cache get database_filename None None N/A N/A N/A N/A self _database_cache N/A database_filename N/A parse_database database_filename N/A N/A database_filename N/A N/A self _database_cache N/A database_filename N/A classmethod _parse_mappings N/A N/A self data search_paths skip_disabled_mappings N/A N/A N/A all_messages N/A N/A all_diagnostic_messages N/A N/A all_commands N/A N/A all_extra_sources N/A set N/A all_initializers N/A N/A all_loopers N/A N/A mapping N/A N/A data get mappings N/A N/A N/A N/A mapping mapping N/A N/A N/A fatal_error Mapping is missing the mapping file path N/A mapping_enabled N/A N/A mapping get enabled True N/A N/A mapping_enabled N/A N/A N/A N/A LOG warning N/A Mapping '%s' is disabled N/A mapping N/A mapping N/A skip_disabled_mappings N/A N/A N/A N/A N/A LOG warning N/A Adding mapping '%s' N/A mapping N/A mapping N/A bus_name N/A N/A mapping get bus None N/A N/A bus_name None N/A N/A N/A N/A LOG warning N/A No default bus associated with '%s' mapping N/A mapping N/A mapping N/A N/A N/A bus_name N/A self buses N/A N/A N/A fatal_error N/A Bus '%s' (from mapping %s) is not defined N/A bus_name N/A mapping N/A mapping N/A N/A N/A N/A N/A N/A N/A self buses N/A bus_name valid N/A N/A N/A N/A LOG warning N/A N/A Mapping '%s' is disabled because bus '%s'  N/A N/A mapping N/A mapping bus_name is not associated with a CAN controller N/A N/A mapping N/A enabled False N/A skip_disabled_mappings N/A N/A N/A mapping_data N/A load_json_from_search_path N/A mapping N/A mapping search_paths N/A commands N/A N/A mapping_data get commands N/A N/A command commands N/A N/A N/A N/A command setdefault enabled mapping_enabled N/A N/A N/A all_commands extend commands N/A diagnostic_messages N/A N/A mapping_data get diagnostic_messages N/A N/A message diagnostic_messages N/A N/A N/A N/A message setdefault bus bus_name N/A N/A N/A message setdefault enabled mapping_enabled N/A N/A N/A all_diagnostic_messages extend diagnostic_messages N/A mapping_enabled N/A N/A N/A N/A all_initializers extend N/A N/A mapping_data get initializers N/A N/A N/A N/A all_loopers extend N/A N/A mapping_data get loopers N/A N/A N/A N/A all_extra_sources update N/A set N/A N/A mapping_data get extra_sources N/A set N/A messages N/A N/A mapping_data get messages N/A N/A N/A N/A len messages 0 N/A N/A N/A N/A LOG warning N/A Mapping file '%s' doesn't define any messages N/A mapping N/A mapping N/A N/A database mapping N/A N/A N/A database_filename database_tree N/A N/A self _parse_database N/A find_file N/A mapping N/A database search_paths N/A messages N/A merge N/A N/A N/A merge_database_into_mapping database_filename database_tree messages get messages N/A messages N/A N/A N/A N/A mapping get bit_numbering_inverted None None N/A N/A N/A N/A LOG warning N/A N/A The bit number inversion setting is undefined for the mapping '%s', but it  N/A mapping N/A mapping is database-backed - assuming inverted N/A message N/A N/A messages values N/A N/A N/A N/A message setdefault bit_numbering_inverted True N/A N/A message_id message N/A N/A messages items N/A N/A N/A message N/A id message_id N/A N/A N/A message setdefault bus bus_name N/A N/A N/A message setdefault enabled mapping_enabled N/A N/A N/A all_messages extend N/A N/A messages values N/A N/A messages commands diagnostic_messages initializers extra_sources loopers all_messages all_commands all_diagnostic_messages all_initializers all_extra_sources all_loopers N/A _parse_messages N/A N/A self messages default_bus N/A None N/A N/A message_data messages N/A N/A N/A N/A message_data setdefault bit_numbering_inverted N/A self bit_numbering_inverted N/A message N/A N/A N/A N/A self buses N/A N/A message_data N/A bus get_or_create_message N/A message_data N/A id N/A N/A message message_set self N/A N/A N/A message merge_message message_data N/A N/A