fn to_csv(&self, sim_state: &SimulatorState, filepath: &str, data_type: LogDataType) -> Result<(), Box<dyn Error>> {

        match data_type {
            LogDataType::SimTimeHistory => self.log_sim_time(sim_state, filepath, LogFileType::CSV),
            LogDataType::SimResult => self.log_sim_result(sim_state, filepath, LogFileType::CSV),
            _ => Err(Box::new(LogError::DataTypeError))
        }

    }
/// Saves MADS simulation data versus time as a csv
/// Supported data:
/// - SimulationTimeHistory
/// - SimulationResult
Saves MADS simulation data versus time as a csv
Supported data:
SimulationTimeHistory
SimulationResult
Saves MADS simulation data versus time as a csv Supported data : SimulationTimeHistory SimulationResult
fn to_csv(&self, sim_state: &SimulatorState, filepath: &str, data_type: LogDataType) -> Result<(), Box<dyn Error>> {
        match data_type {
            LogDataType::SimTimeHistory => self.log_sim_time(sim_state, filepath, LogFileType::CSV),
            LogDataType::SimResult => self.log_sim_result(sim_state, filepath, LogFileType::CSV),
            _ => Err(Box::new(LogError::DataTypeError))
        }
    }
fn to_csv ( & self , sim_state : & SimulatorState , filepath : & str , data_type : LogDataType ) -> Result < ( ) , Box < dyn Error > > { match data_type { LogDataType :: SimTimeHistory => self . log_sim_time ( sim_state , filepath , LogFileType :: CSV ) , LogDataType :: SimResult => self . log_sim_result ( sim_state , filepath , LogFileType :: CSV ) , _ => Err ( Box :: new ( LogError :: DataTypeError ) ) } }
Saves MADS simulation data versus time as a csv
Supported data:
 SimulationTimeHistory
 SimulationResult
Saves MADS simulation data versus time as a csv Supported data : SimulationTimeHistory SimulationResult
&self
sim_state
&SimulatorState
filepath
&str
data_type
LogDataType
&self
sim_state
&SimulatorState
filepath
&str
data_type
LogDataType