parameters: (self, lines1, lines2, current_index)
return_statement: return current_index+2
docstring: This function compares results blocks of *.post.res files
docstring_summary: This function compares results blocks of *.post.res files
docstring_tokens: This function compares results blocks of * . post . res files
function: def __ComparePostResFileResultsBlock(self, lines1, lines2, current_index):
          """This function compares results blocks of *.post.res files
          """
          # comparing result labels
          lines_1_splitted = lines1[current_index].split()
          lines_2_splitted = lines2[current_index].split()
  
          if len(lines_1_splitted) != len(lines_2_splitted):
              self.assertTrue(False, msg="Result labels have different length!" + self.info_msg)
  
          for val_1, val_2 in zip(lines_1_splitted, lines_2_splitted):
              self.assertTrue(val_1 == val_2,
                              msg=val_1 + " != " + val_2 + self.info_msg)
  
          current_index += 1 # skipping "Values"-line
  
          # comparing results
          while lines1[current_index+1] != "End Values":
              current_index += 1
              lines_1_splitted = lines1[current_index].split()
              lines_2_splitted = lines2[current_index].split()
              if len(lines_1_splitted) != len(lines_2_splitted):
                  self.assertTrue(False, msg="Different number of results!" + self.info_msg)
  
              for val_1, val_2 in zip(lines_1_splitted, lines_2_splitted):
                  self.__CheckCloseValues(float(val_1), float(val_2))
  
          return current_index+2
function_tokens: def __ComparePostResFileResultsBlock ( self , lines1 , lines2 , current_index ) : # comparing result labels lines_1_splitted = lines1 [ current_index ] . split ( ) lines_2_splitted = lines2 [ current_index ] . split ( ) if len ( lines_1_splitted ) != len ( lines_2_splitted ) : self . assertTrue ( False , msg = "Result labels have different length!" + self . info_msg ) for val_1 , val_2 in zip ( lines_1_splitted , lines_2_splitted ) : self . assertTrue ( val_1 == val_2 , msg = val_1 + " != " + val_2 + self . info_msg ) current_index += 1 # skipping "Values"-line # comparing results while lines1 [ current_index + 1 ] != "End Values" : current_index += 1 lines_1_splitted = lines1 [ current_index ] . split ( ) lines_2_splitted = lines2 [ current_index ] . split ( ) if len ( lines_1_splitted ) != len ( lines_2_splitted ) : self . assertTrue ( False , msg = "Different number of results!" + self . info_msg ) for val_1 , val_2 in zip ( lines_1_splitted , lines_2_splitted ) : self . __CheckCloseValues ( float ( val_1 ) , float ( val_2 ) ) return current_index + 2