You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -953,28 +1003,30 @@ std::pair<int, std::string> AngReader::fixOrderOfData(std::vector<int64_t>& inde
953
1003
std::stringstream message;
954
1004
message << "Error: The calculated number of rows " << yMax << ", " << yMin << ", " << yStep << " (" << ((yMax - yMin) / yStep) + 1 << ") does not match the actual number of rows (" << numRows + 1
auto result = ::GetGridIndex(coords, m_Origin, m_Spacing, m_Dimensions);
1016
+
if(result.has_value())
967
1017
{
968
-
indexMap[i] = (numCols * yIndex) + xIndex;
1018
+
indexMap[i] = *result;
969
1019
}
970
1020
else
971
1021
{
972
1022
std::stringstream message;
973
-
message << "Error: The given indices (" << xIndex << ", " << yIndex << ") does not fit within the grid size (" << numCols << ", " << numRows << ")" << std::endl;
974
-
return {-10, message.str()};
1023
+
message << "AngReader Error: The calculated index for the X and Y Position " << coords[0] << ", " << coords[1] << " will fall outside of the calculated grid.\n"
0 commit comments