version 1.0.0-rc.19
This commit is contained in:
@@ -320,15 +320,12 @@ std::vector<int64_t> DetectorWrapper::GetHighVoltage() const {
|
||||
try {
|
||||
auto result = det.getHighVoltage();
|
||||
std::vector<int64_t> ret;
|
||||
for (int i = 0; i < result.size(); i++) {
|
||||
if (result[i] >= 0)
|
||||
ret.push_back(result[i]);
|
||||
}
|
||||
for (int i : result)
|
||||
ret.push_back(i);
|
||||
return ret;
|
||||
} catch (std::exception &e) {
|
||||
throw JFJochException(JFJochExceptionCategory::Detector, e.what());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DetectorStatus DetectorWrapper::GetStatus() const {
|
||||
|
||||
Reference in New Issue
Block a user