def compare_alignments(old_list, new_list):
 if (len(old_list) != len(new_list)):
  raise ValueError(('%i vs %i alignments' % (len(old_list), len(new_list))))
 for (old, new) in zip(old_list, new_list):
  if (len(old) != len(new)):
   raise ValueError(('Alignment with %i vs %i records' % (len(old), len(new))))
  compare_records(old, new)
 return True

def compare_alignments ( old_list , new_list ) : if ( len ( old_list ) != len ( new_list ) ) : raise ValueError ( ( '%i vs %i alignments' % ( len ( old_list ) , len ( new_list ) ) ) ) for ( old , new ) in zip ( old_list , new_list ) : if ( len ( old ) != len ( new ) ) : raise ValueError ( ( 'Alignment with %i vs %i records' % ( len ( old ) , len ( new ) ) ) ) compare_records ( old , new ) return True
check two lists of alignments agree .