##// END OF EJS Templates
Changes the way to retrieve unit in AMDA result file...
Alexandre Leroux -
r724:b7b2c2f3f00b
parent child
Show More
@@ -24,11 +24,11 const auto DATE_FORMAT = QStringLiteral("yyyy-MM-ddThh:mm:ss.zzz");
24 const auto RESULT_LINE_SEPARATOR = QRegularExpression{QStringLiteral("\\s+")};
24 const auto RESULT_LINE_SEPARATOR = QRegularExpression{QStringLiteral("\\s+")};
25
25
26 /// Regex to find unit in a line. Examples of valid lines:
26 /// Regex to find unit in a line. Examples of valid lines:
27 /// ... - Units : nT - ...
27 /// ... PARAMETER_UNITS : nT ...
28 /// ... -Units:nT- ...
28 /// ... PARAMETER_UNITS:nT ...
29 /// ... -Units: m²- ...
29 /// ... PARAMETER_UNITS: m² ...
30 /// ... - Units : m/s - ...
30 /// ... PARAMETER_UNITS : m/s ...
31 const auto UNIT_REGEX = QRegularExpression{QStringLiteral("-\\s*Units\\s*:\\s*(.+?)\\s*-")};
31 const auto UNIT_REGEX = QRegularExpression{QStringLiteral("\\s*PARAMETER_UNITS\\s*:\\s*(.+)")};
32
32
33 /// Converts a string date to a double date
33 /// Converts a string date to a double date
34 /// @return a double that represents the date in seconds, NaN if the string date can't be converted
34 /// @return a double that represents the date in seconds, NaN if the string date can't be converted
General Comments 0
You need to be logged in to leave comments. Login now