solved bug of decoding data with distorted image

This commit is contained in:
Dhanya Maliakal 2017-03-03 13:48:47 +01:00
parent 7e00d9f395
commit f3bf331b5f

View File

@ -5226,6 +5226,7 @@ double* slsDetector::decodeData(int *datain, int &nn, double *fdata) {
double *dataout;
if (fdata) {
dataout=fdata;
nn=thisDetector->nChans*thisDetector->nChips*thisDetector->nMods;
// printf("not allocating fdata!\n");
if (thisDetector->myDetectorType==JUNGFRAUCTB) nn=thisDetector->dataBytes/2;
} else {