exptime of gates

This commit is contained in:
Erik Frojdh
2020-05-20 09:36:43 +02:00
parent 6d71d6cf9f
commit 761f93d753
4 changed files with 14 additions and 11 deletions

View File

@ -1277,9 +1277,9 @@ void Detector::setExptime(int gateIndex, ns t, Positions pos) {
Result<std::array<ns, 3>> Detector::getExptimeForAllGates(Positions pos) const {
auto t = pimpl->Parallel(&Module::getExptimeForAllGates, pos);
Result<std::array<ns, 3>> res(t.size());
for (unsigned int i = 0; i < t.size(); ++i) {
for (unsigned int j = 0; j != 3; ++j) {
res[i][j] = static_cast<ns>(t[i][j]);
for (size_t i = 0; i < t.size(); ++i) {
for (size_t j = 0; j != 3; ++j) {
res[i][j] = ns(t[i][j]);
}
}
return res;