NumericalForward.py
def save_results(self) -> None:
        """
        Outputs the (semi)results of a simulation into a CSV file and names it
            accordingly.
        """

        # TODO: discuss the possible filename structure
        file_name = "Classic-{}.csv".format(int(time.time()))
        base_path = os.path.dirname(os.path.realpath(__file__))
        absolute_path = os.path.join(base_path, file_name)

        time_data = self.t
        temp_data = self.T_x0

        with open(absolute_path, "w") as csv_file:
            csv_writer = csv.writer(csv_file)
            headers = ["Time [s]", "Temperature [C]"]
            csv_writer.writerow(headers)

            for time_value, temp_value in zip(time_data, temp_data):
                csv_writer.writerow([time_value, temp_value])

        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(self) -> None:
        file_name = "Classic-{}.csv".format(int(time.time()))
        base_path = os.path.dirname(os.path.realpath(__file__))
        absolute_path = os.path.join(base_path, file_name)
        time_data = self.t
        temp_data = self.T_x0
        with open(absolute_path, "w") as csv_file:
            csv_writer = csv.writer(csv_file)
            headers = ["Time [s]", "Temperature [C]"]
            csv_writer.writerow(headers)
            for time_value, temp_value in zip(time_data, temp_data):
                csv_writer.writerow([time_value, temp_value])
def save_results ( self ) -> None : file_name = "Classic-{}.csv" . format ( int ( time . time ( ) ) ) base_path = os . path . dirname ( os . path . realpath ( __file__ ) ) absolute_path = os . path . join ( base_path , file_name ) time_data = self . t temp_data = self . T_x0 with open ( absolute_path , "w" ) as csv_file : csv_writer = csv . writer ( csv_file ) headers = [ "Time [s]" , "Temperature [C]" ] csv_writer . writerow ( headers ) for time_value , temp_value in zip ( time_data , temp_data ) : csv_writer . writerow ( [ time_value , temp_value ] )
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