experiment_data_handler.py
def check_CSV_file_correctness(self, column_names: list) -> None:
        """
        Making sure the CSV file contains the right columns.
        We need the time and ambient temperatures to be there all the time,
          and them at least one of the temperature and flux.
        In case of some problem throw our custom error.

        Args:
            column_names ... list of columns from the CSV file
        """

        if self.t_column_name not in column_names:
            msg = "Time data is empty, please use 'Time' column for this data"
            raise ExperimentDataCannotBeParsedError(msg)
        if self.T_amb_column_name not in column_names:
            msg = "Ambient temperature data is empty, please use 'T_amb' column for this data"
            raise ExperimentDataCannotBeParsedError(msg)
        if self.T_column_name not in column_names and self.q_column_name not in column_names:
            msg = "Temperature and flux data are empty, please use 'Temperature' and 'HeatFlux' columns for this data"
            raise ExperimentDataCannotBeParsedError(msg)

        Making sure the CSV file contains the right columns.
        We need the time and ambient temperatures to be there all the time,
          and them at least one of the temperature and flux.
        In case of some problem throw our custom error.

        Args:
            column_names ... list of columns from the CSV file
        
Making sure the CSV file contains the right columns.
We need the time and ambient temperatures to be there all the time,
and them at least one of the temperature and flux.
In case of some problem throw our custom error.


Making sure the CSV file contains the right columns . We need the time and ambient temperatures to be there all the time and them at least one of the temperature and flux . In case of some problem throw our custom error .
def check_CSV_file_correctness(self, column_names: list) -> None:
        if self.t_column_name not in column_names:
            msg = "Time data is empty, please use 'Time' column for this data"
            raise ExperimentDataCannotBeParsedError(msg)
        if self.T_amb_column_name not in column_names:
            msg = "Ambient temperature data is empty, please use 'T_amb' column for this data"
            raise ExperimentDataCannotBeParsedError(msg)
        if self.T_column_name not in column_names and self.q_column_name not in column_names:
            msg = "Temperature and flux data are empty, please use 'Temperature' and 'HeatFlux' columns for this data"
            raise ExperimentDataCannotBeParsedError(msg)
def check_CSV_file_correctness ( self , column_names : list ) -> None : if self . t_column_name not in column_names : msg = "Time data is empty, please use 'Time' column for this data" raise ExperimentDataCannotBeParsedError ( msg ) if self . T_amb_column_name not in column_names : msg = "Ambient temperature data is empty, please use 'T_amb' column for this data" raise ExperimentDataCannotBeParsedError ( msg ) if self . T_column_name not in column_names and self . q_column_name not in column_names : msg = "Temperature and flux data are empty, please use 'Temperature' and 'HeatFlux' columns for this data" raise ExperimentDataCannotBeParsedError ( msg )
Making sure the CSV file contains the right columns.
Making sure the CSV file contains the right columns .
"""
        Making sure the CSV file contains the right columns.
        We need the time and ambient temperatures to be there all the time,
          and them at least one of the temperature and flux.
        In case of some problem throw our custom error.

        Args:
            column_names ... list of columns from the CSV file
        """
self
column_names
list