pyJoules/handler/csv_handler.py
def save_data(self):
        """
        append processed trace to the file
        """
        flatened_trace = self._flaten_trace()
        first_sample = flatened_trace[0]
        domain_names = first_sample.energy.keys()

        csv_file = self._init_file(first_sample)

        for sample in flatened_trace:
            csv_file.write(self._gen_sample_line(sample, domain_names) + '\n')
        csv_file.close()
        self.traces = []

        append processed trace to the file
        
append processed trace to the file
append processed trace to the file
def save_data(self):
        flatened_trace = self._flaten_trace()
        first_sample = flatened_trace[0]
        domain_names = first_sample.energy.keys()
        csv_file = self._init_file(first_sample)
        for sample in flatened_trace:
            csv_file.write(self._gen_sample_line(sample, domain_names) + '\n')
        csv_file.close()
        self.traces = []
def save_data ( self ) : flatened_trace = self . _flaten_trace ( ) first_sample = flatened_trace [ 0 ] domain_names = first_sample . energy . keys ( ) csv_file = self . _init_file ( first_sample ) for sample in flatened_trace : csv_file . write ( self . _gen_sample_line ( sample , domain_names ) + '\n' ) csv_file . close ( ) self . traces = [ ]
append processed trace to the file
append processed trace to the file
"""
        append processed trace to the file
        """
self