#NEWLINE# def assert_xl_view_state_consistency( view_state_i , mc ) : #NEWLINE# #INDENT# column_names = view_state_i [ 'column_names' ] #NEWLINE# column_component_suffstats = view_state_i [ 'column_component_suffstats' ] #NEWLINE# for ( column_name_i , column_component_suffstats_i ) in zip ( column_names , column_component_suffstats ) : #NEWLINE# #INDENT# global_column_idx = mc [ 'name_to_idx' ] [ str ( column_name_i ) ] #NEWLINE# modeltype = mc [ 'column_metadata' ] [ int ( global_column_idx ) ] [ 'modeltype' ] #NEWLINE# suffstats_validator = modeltype_suffstats_validators [ modeltype ] #NEWLINE# for component_suffstats in column_component_suffstats_i : #NEWLINE# #INDENT# suffstats_validator ( component_suffstats )