From 41daad48d05fa78c800a7d007bdfca96d6d8dd52 Mon Sep 17 00:00:00 2001 From: conrad Date: Sun, 28 Mar 2021 14:16:36 +1000 Subject: [PATCH] simplifications --- include/armadillo_bits/Cube_meat.hpp | 1 - include/armadillo_bits/Mat_meat.hpp | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/include/armadillo_bits/Cube_meat.hpp b/include/armadillo_bits/Cube_meat.hpp index aa2de20c..9cf7fa56 100644 --- a/include/armadillo_bits/Cube_meat.hpp +++ b/include/armadillo_bits/Cube_meat.hpp @@ -4495,7 +4495,6 @@ Cube::load(const hdf5_name& spec, const file_type type) if( (type != hdf5_binary) && (type != hdf5_binary_trans) ) { - (*this).soft_reset(); arma_stop_runtime_error("Cube::load(): unsupported file type for hdf5_name()"); return false; } diff --git a/include/armadillo_bits/Mat_meat.hpp b/include/armadillo_bits/Mat_meat.hpp index 733dfdde..5da2299b 100644 --- a/include/armadillo_bits/Mat_meat.hpp +++ b/include/armadillo_bits/Mat_meat.hpp @@ -7425,7 +7425,7 @@ Mat::save(const csv_name& spec, const file_type type) const if(type != csv_ascii) { - arma_debug_check(true, "Mat::save(): unsupported file type for csv_name()"); + arma_stop_runtime_error("Mat::save(): unsupported file type for csv_name()"); return false; } @@ -7531,7 +7531,7 @@ Mat::save(std::ostream& os, const file_type type) const break; default: - arma_warn("Mat::save(): unsupported file type"); + arma_debug_warn("Mat::save(): unsupported file type"); save_okay = false; } @@ -7630,7 +7630,6 @@ Mat::load(const hdf5_name& spec, const file_type type) if( (type != hdf5_binary) && (type != hdf5_binary_trans) ) { - (*this).soft_reset(); arma_stop_runtime_error("Mat::load(): unsupported file type for hdf5_name()"); return false; } @@ -7683,7 +7682,7 @@ Mat::load(const csv_name& spec, const file_type type) if(type != csv_ascii) { - arma_debug_check(true, "Mat::load(): unsupported file type for csv_name()"); + arma_stop_runtime_error("Mat::load(): unsupported file type for csv_name()"); return false; }