diff --git a/src/griddeddata.cpp b/src/griddeddata.cpp index eeda3a5..644b9df 100644 --- a/src/griddeddata.cpp +++ b/src/griddeddata.cpp @@ -56,7 +56,7 @@ void GridAxis::calc_spacing_multipliers() { // If you are sitting at the "0" along an edge of the hypercube, you want the "0" flavof if (grid.size() == 1) { set_interp_method(Method::LINEAR); - showMessage(MsgLevel::MSG_WARN, "A cubic interpolation method is not valid for grid axes with only one value. Interpolation method reset to linear."); + showMessage(MsgLevel::MSG_INFO, "A cubic interpolation method is not valid for grid axes with only one value. Interpolation method reset to linear."); } double center_spacing; for (std::size_t i = 0; i < grid.size() - 1; i++) { @@ -79,11 +79,11 @@ void GridAxis::check_grid_sorted() { void GridAxis::check_extrap_limits() { if (extrapolation_limits.first > grid[0]) { - showMessage(MsgLevel::MSG_WARN, stringify("The lower extrapolation limit (", extrapolation_limits.first,") is within the set of grid values. Setting to smallest grid value (", grid[0],").")); + showMessage(MsgLevel::MSG_INFO, stringify("The lower extrapolation limit (", extrapolation_limits.first,") is within the set of grid values. Setting to smallest grid value (", grid[0],").")); extrapolation_limits.first = grid[0]; } if (extrapolation_limits.second < grid.back()) { - showMessage(MsgLevel::MSG_WARN, stringify("The upper extrapolation limit (", extrapolation_limits.first,") is within the set of grid values. Setting to largest grid value (", grid.back(),").")); + showMessage(MsgLevel::MSG_INFO, stringify("The upper extrapolation limit (", extrapolation_limits.first,") is within the set of grid values. Setting to largest grid value (", grid.back(),").")); extrapolation_limits.second = grid.back(); } } diff --git a/test/griddeddata_test.cpp b/test/griddeddata_test.cpp index 1d88c16..5aae283 100644 --- a/test/griddeddata_test.cpp +++ b/test/griddeddata_test.cpp @@ -125,13 +125,13 @@ TEST(GridAxis, calc_spacing_multipliers) { TEST(GridAxis, bad_limits) { GridAxis my_grid_axis({0, 5, 7, 11, 12, 15}); std::pair extrap_limits{4, 17}; - std::string ExpectedOut = " WARNING: The lower extrapolation limit (4) is within the set of " + std::string ExpectedOut = " NOTE: The lower extrapolation limit (4) is within the set of " "grid values. Setting to smallest grid value (0).\n"; EXPECT_STDOUT(my_grid_axis.set_extrap_limits(extrap_limits);, ExpectedOut); EXPECT_EQ(my_grid_axis.extrapolation_limits.first, 0); extrap_limits = {-2, 12}; - ExpectedOut = " WARNING: The upper extrapolation limit (-2) is within the set of grid values. " + ExpectedOut = " NOTE: The upper extrapolation limit (-2) is within the set of grid values. " "Setting to largest grid value (15).\n"; EXPECT_STDOUT(my_grid_axis.set_extrap_limits(extrap_limits);, ExpectedOut); EXPECT_EQ(my_grid_axis.extrapolation_limits.second, 15);