Skip to content

Commit

Permalink
scan options is long string, fix bvec rejection (#606)
Browse files Browse the repository at this point in the history
  • Loading branch information
neurolabusc committed May 20, 2022
1 parent dea3fb9 commit 98ccdbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions console/nii_dicom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5242,7 +5242,7 @@ const uint32_t kEffectiveTE = 0x0018 + (0x9082 << 16);
dcmStr(lLength, &buffer[lPos], d.institutionName);
break;
case kInstitutionAddress: //VR is "ST": 1024 chars maximum
dcmStr(lLength, &buffer[lPos], d.institutionAddress);
dcmStr(lLength, &buffer[lPos], d.institutionAddress, true);
break;
case kReferringPhysicianName:
dcmStr(lLength, &buffer[lPos], d.referringPhysicianName);
Expand Down Expand Up @@ -5817,7 +5817,7 @@ const uint32_t kEffectiveTE = 0x0018 + (0x9082 << 16);
break;
//group 21: siemens
case kScanOptionsSiemens:
dcmStr(lLength, &buffer[lPos], scanOptionsSiemens);
dcmStr(lLength, &buffer[lPos], scanOptionsSiemens, true);
break;
case kPATModeText: { //e.g. Siemens iPAT x2 listed as "p2"
char accelStr[kDICOMStr];
Expand Down
2 changes: 1 addition & 1 deletion console/nii_dicom_batch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2125,7 +2125,7 @@ int *nii_saveDTI(char pathoutname[], int nConvert, struct TDCMsort dcmSort[], st
if (opts.isOnlyBIDS)
return NULL;
uint64_t indx0 = dcmSort[0].indx; //first volume
if (isnan(dcmList[indx0].patientPosition[0]))
if (isnan(dcmList[indx0].patientPosition[1]))
return NULL; //issue606 do not save bvec for non-spatial data (e.g. physio)
int numDti = dcmList[indx0].CSA.numDti;
#ifdef USING_R
Expand Down

0 comments on commit 98ccdbe

Please sign in to comment.