Older stuff/Tests_alias_TKinter_gui.py
def save_results_to_csv_file(self, time_values, temperature_values, material, method):
        """
        Outputs the (semi)results of a simulation into a CSV file and names it
            accordingly.
        """
        # TODO: discuss the possible filename structure
        file_name = "{}-{}-{}C-{}s.csv".format(method, material, int(temperature_values[0]),
                                            int(time_values[-1]))
        with open(file_name, "w") as csv_file:
            csv_writer = csv.writer(csv_file)
            headers = ["Time [s]", "Temperature [C]"]
            csv_writer.writerow(headers)

            for time, temperature in zip(time_values, temperature_values):
                csv_writer.writerow([time, temperature])

        Outputs the (semi)results of a simulation into a CSV file and names it
            accordingly.
        
Outputs the (semi)results of a simulation into a CSV file and names it
accordingly.
Outputs the ( semi ) results of a simulation into a CSV file and names it accordingly .
def save_results_to_csv_file(self, time_values, temperature_values, material, method):
        file_name = "{}-{}-{}C-{}s.csv".format(method, material, int(temperature_values[0]),
                                            int(time_values[-1]))
        with open(file_name, "w") as csv_file:
            csv_writer = csv.writer(csv_file)
            headers = ["Time [s]", "Temperature [C]"]
            csv_writer.writerow(headers)
            for time, temperature in zip(time_values, temperature_values):
                csv_writer.writerow([time, temperature])
def save_results_to_csv_file ( self , time_values , temperature_values , material , method ) : file_name = "{}-{}-{}C-{}s.csv" . format ( method , material , int ( temperature_values [ 0 ] ) , int ( time_values [ - 1 ] ) ) with open ( file_name , "w" ) as csv_file : csv_writer = csv . writer ( csv_file ) headers = [ "Time [s]" , "Temperature [C]" ] csv_writer . writerow ( headers ) for time , temperature in zip ( time_values , temperature_values ) : csv_writer . writerow ( [ time , temperature ] )
Outputs the (semi)results of a simulation into a CSV file and names it
accordingly.
Outputs the ( semi ) results of a simulation into a CSV file and names it accordingly .
"""
        Outputs the (semi)results of a simulation into a CSV file and names it
            accordingly.
        """ # TODO: discuss the possible filename structure
self
time_values
temperature_values
material
method