src/tools/benchmark_tool/benchmark_tool/metric/average_metric.py
def _save_metric_file(self, min_value, average_value, max_value):
        """
        Save the output files with the minimum value, the average and the maximum value.

        @param min_value: The minimum value to be saved in the output file
        @type  min_value: int
        @param average_value: The average value to be saved in the output file
        @type  average_value: int
        @param max_value: The maximum value to be saved in the output file
        @type  max_value: int
        @return: True on success, False on failure
        """
        filename = self._output_folder + "/" + self._metric_file_name
        try:
            file = open(filename, "w")
            file.write(str(min_value) + "\n")
            file.write(str(average_value) + "\n")
            file.write(str(max_value) + "\n")
        except Exception as e:
            error(self.node, "%s" % str(e))
            return False
        finally:
            file.close()

        return True

        Save the output files with the minimum value, the average and the maximum value.

        @param min_value: The minimum value to be saved in the output file
        @type  min_value: int
        @param average_value: The average value to be saved in the output file
        @type  average_value: int
        @param max_value: The maximum value to be saved in the output file
        @type  max_value: int
        @return: True on success, False on failure
        
Save the output files with the minimum value, the average and the maximum value.
Save the output files with the minimum value the average and the maximum value .
def _save_metric_file(self, min_value, average_value, max_value):
        filename = self._output_folder + "/" + self._metric_file_name
        try:
            file = open(filename, "w")
            file.write(str(min_value) + "\n")
            file.write(str(average_value) + "\n")
            file.write(str(max_value) + "\n")
        except Exception as e:
            error(self.node, "%s" % str(e))
            return False
        finally:
            file.close()
        return True
def _save_metric_file ( self , min_value , average_value , max_value ) : filename = self . _output_folder + "/" + self . _metric_file_name try : file = open ( filename , "w" ) file . write ( str ( min_value ) + "\n" ) file . write ( str ( average_value ) + "\n" ) file . write ( str ( max_value ) + "\n" ) except Exception as e : error ( self . node , "%s" % str ( e ) ) return False finally : file . close ( ) return True
Save the output files with the minimum value, the average and the maximum value.
Save the output files with the minimum value the average and the maximum value .
"""
        Save the output files with the minimum value, the average and the maximum value.

        @param min_value: The minimum value to be saved in the output file
        @type  min_value: int
        @param average_value: The average value to be saved in the output file
        @type  average_value: int
        @param max_value: The maximum value to be saved in the output file
        @type  max_value: int
        @return: True on success, False on failure
        """
True on success, False on failure
True on success False on failure
self
min_value
The minimum value to be saved in the output file
The minimum value to be saved in the output file
average_value
The average value to be saved in the output file
The average value to be saved in the output file
max_value
The maximum value to be saved in the output file
The maximum value to be saved in the output file