Skip to content

Commit

Permalink
Merge pull request #122 from kspaceKelvin/disable_pmu_nx
Browse files Browse the repository at this point in the history
Automatically disable syncdata (pmu) processing for NX >30
  • Loading branch information
kspaceKelvin authored Apr 3, 2023
2 parents bb49d4f + 44fa443 commit a8814d9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ message(STATUS "Looking for packages in : ${CMAKE_PREFIX_PATH}")
#VERSIONING
set(SIEMENS_TO_ISMRMRD_VERSION_MAJOR 1)
set(SIEMENS_TO_ISMRMRD_VERSION_MINOR 2)
set(SIEMENS_TO_ISMRMRD_VERSION_PATCH 9)
set(SIEMENS_TO_ISMRMRD_VERSION_PATCH 10)
set(SIEMENS_TO_ISMRMRD_VERSION_STRING ${SIEMENS_TO_ISMRMRD_VERSION_MAJOR}.${SIEMENS_TO_ISMRMRD_VERSION_MINOR}.${SIEMENS_TO_ISMRMRD_VERSION_PATCH})

# Generate the converter_version.h header file
Expand Down
11 changes: 11 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,17 @@ int main(int argc, char* argv[]) {
isNX = true;
}

if (isNX)
{
int nxVersion = atoi(software_version.substr(11).c_str());
std::cout << "Detected Numaris/X version: " << nxVersion << std::endl;
if (nxVersion > 30)
{
skip_syncdata = true;
std::cout << "Disabling parsing of syncdata due to incompatibility!" << std::endl;
}
}

std::cout << "Dwell time: " << dwell_time_0 << std::endl;

if (debug_xml) {
Expand Down

0 comments on commit a8814d9

Please sign in to comment.