Skip to content

Commit

Permalink
Update unparsable number warning
Browse files Browse the repository at this point in the history
  • Loading branch information
brianbolt authored Apr 29, 2024
1 parent 63075ab commit 400f5a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/GenericDataParser/src/server/generic_data_parser.R
Original file line number Diff line number Diff line change
Expand Up @@ -1715,7 +1715,7 @@ organizeCalculatedResults <- function(calculatedResults, inputFormat, formatPara
stringValuesWithNumbers <- numbersToBeSavedAsString$"stringValue"[grepl("[0-9]",numbersToBeSavedAsString$"stringValue")]
# Warn the user if there are any
if(length(stringValuesWithNumbers) > 0) {
warnUser(paste0("The following Number values contain numerics but could not be parsed as Number so will be saved as Text: '", paste(unique(stringValuesWithNumbers), collapse = "', '"), "'. To avoid this warning set only non-numerics like 'Bad Solutibility', or use a correctly formatted Number. For example, 1, 1.2, 1.23e-10, >1, <1"))
warnUser(paste0("The following Number values contain numerals but could not be parsed as Number so will be saved as Text: '", paste(unique(stringValuesWithNumbers), collapse = "', '"), "'. To avoid this warning either remove all numerals from the text, or use a correctly formatted Number. For example, 1, 1.2, 1.23e-10, >1, <1"))
}

# Check the Number values are finite
Expand Down

0 comments on commit 400f5a8

Please sign in to comment.