This commit is contained in:
2019-08-19 10:48:05 +02:00
parent 7457c56533
commit 26958e99ef
6 changed files with 16 additions and 52 deletions

View File

@@ -3306,7 +3306,7 @@ std::string slsDetectorCommand::cmdDetectorSize(int narg, const char * const arg
slsDetectorDefs::xy res;
res.x = val;
res.y = val2;
myDet->setMaxNumberOfChannels(res);
myDet->setNumberOfChannels(res);
}
if(cmd=="quad"){
@@ -3342,7 +3342,7 @@ std::string slsDetectorCommand::cmdDetectorSize(int narg, const char * const arg
ROI roi = myDet->getROI(detPos);
return (std::string("[") + std::to_string(roi.xmin) + std::string(",") + std::to_string(roi.xmax) + std::string("]"));
} else if (cmd == "detsizechan") {
slsDetectorDefs::xy res = myDet->getMaxNumberOfChannels();
slsDetectorDefs::xy res = myDet->getNumberOfChannels();
sprintf(ans, "%d %d", res.x, res.y);
return std::string(ans);
} else if (cmd=="quad") {