Skip to content

Commit

Permalink
Adjust for ms
Browse files Browse the repository at this point in the history
  • Loading branch information
neurolabusc committed Oct 12, 2024
1 parent 47ef6d5 commit e3fc3e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions console/nii_dicom_batch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6536,14 +6536,14 @@ void checkSliceTiming(struct TDICOMdata *d, struct TDICOMdata *d1, int verbose,
if (d1->CSA.sliceTiming[i] > maxT1)
maxT1 = d1->CSA.sliceTiming[i];
}
int isIssue870 = !isSameFloatGE(maxT-minT, maxT1-minT1);
if ((maxT1 < 0.0) && (minT1 < 0.0)) {
// issue 797 e.g. E11 2D slices where acquisition time used
// in this case d1->csa is not populated
if ((maxT-minT) > d->TR)
printWarning("Issue797: Check slice timing range %g..%g, TA= %g, TR=%g ms)\n", minT, maxT, maxT-minT, d->TR);
return;
isIssue870 = 0;
}
int isIssue870 = !isSameFloatGE(maxT-minT, maxT1-minT1);
if (isSliceTimeHHMMSS) // convert HHMMSS to msec
for (int i = 0; i < kMaxEPI3D; i++)
d->CSA.sliceTiming[i] = dicomTimeToSec(d->CSA.sliceTiming[i]) * 1000.0;
Expand Down

0 comments on commit e3fc3e2

Please sign in to comment.