Skip to content

Commit

Permalink
Fixes for #127
Browse files Browse the repository at this point in the history
  • Loading branch information
neurolabusc committed Sep 7, 2017
1 parent 9921427 commit 671a828
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions console/nii_dicom_batch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ int siemensCsaAscii(const char * filename, int csaOffset, int csaLength, int* e
readKeyStr(keyStrCI, keyPos, csaLengthTrim, consistencyInfo);
char keyStrCS[] = "sCoilSelectMeas.sCoilStringForConversion";
readKeyStr(keyStrCS, keyPos, csaLengthTrim, coilElements);
char keyStrSeq[] = "tProtocolName";
char keyStrSeq[] = "tSequenceFileName";
readKeyStr(keyStrSeq, keyPos, csaLengthTrim, pulseSequenceDetails);
char keyStrExt[] = "FmriExternalInfo";
readKeyStr(keyStrExt, keyPos, csaLengthTrim, fmriExternalInfo);
Expand Down Expand Up @@ -592,8 +592,8 @@ void nii_SaveBIDS(char pathoutname[], struct TDICOMdata d, struct TDCMopts opts,
// fprintf(fp, "\t\"PatientID\": \"%s\",\n", d.patientID );
}
#ifdef myReadAsciiCsa
if ((d.manufacturer == kMANUFACTURER_SIEMENS) && (d.CSA.SeriesHeader_offset > 0) && (d.CSA.SeriesHeader_length > 0) &&
(strlen(d.scanningSequence) > 1) && (d.scanningSequence[0] == 'E') && (d.scanningSequence[1] == 'P')) { //for EPI scans only
if ((d.manufacturer == kMANUFACTURER_SIEMENS) && (d.CSA.SeriesHeader_offset > 0) && (d.CSA.SeriesHeader_length > 0)) {
//&& (strlen(d.scanningSequence) > 1) && (d.scanningSequence[0] == 'E') && (d.scanningSequence[1] == 'P')) { //for EPI scans only
int echoSpacing, echoTrainDuration, epiFactor, parallelReductionFactorInPlane;
char fmriExternalInfo[kDICOMStr], coilID[kDICOMStr], consistencyInfo[kDICOMStr], coilElements[kDICOMStr], pulseSequenceDetails[kDICOMStr];
epiFactor = siemensCsaAscii(filename, d.CSA.SeriesHeader_offset, d.CSA.SeriesHeader_length, &echoSpacing, &echoTrainDuration, &parallelReductionFactorInPlane, coilID, consistencyInfo, coilElements, pulseSequenceDetails, fmriExternalInfo);
Expand Down

0 comments on commit 671a828

Please sign in to comment.