Commit 79e8f5ef authored by Pawel Sznajder's avatar Pawel Sznajder
Browse files

correct reading of units from files for observables

parent 2a239c8a
......@@ -327,7 +327,9 @@ private:
// if conversion failed then print an exception
if ((sstream >> m_value).fail()) {
throw ElemUtils::CustomException(getClassName(), __func__,
"Cast from std::string to type<T> failed !");
ElemUtils::Formatter()
<< "Cast from std::string to type<T> failed for: "
<< stringValue);
}
}
......
......@@ -181,7 +181,6 @@ List<DVCSConvolCoeffFunctionKinematic> KinematicUtils::getDVCSCCFKinematicFromFi
//continue
continue;
}
//split
......@@ -288,7 +287,6 @@ List<TCSConvolCoeffFunctionKinematic> KinematicUtils::getTCSCCFKinematicFromFile
//continue
continue;
}
//split
......@@ -394,6 +392,8 @@ List<DVCSObservableKinematic> KinematicUtils::getDVCSObservableKinematicFromFile
}
//continue
continue;
}
//split
......@@ -500,6 +500,8 @@ List<TCSObservableKinematic> KinematicUtils::getTCSObservableKinematicFromFile(
}
//continue
continue;
}
//split
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment