@@ -1032,7 +1032,7 @@ InterfilePDFSHeader::post_processing()
1032
1032
{
1033
1033
warning (" Inconsistent number of TOF bins (" + std::to_string (this ->num_timing_poss )
1034
1034
+ " ) and size of the 'TOF bin order' list (" + std::to_string (this ->timing_poss_sequence .size ()) + " )." );
1035
- // return true;
1035
+ return true ;
1036
1036
}
1037
1037
}
1038
1038
@@ -1042,8 +1042,8 @@ InterfilePDFSHeader::post_processing()
1042
1042
bool originating_system_was_recognised = guessed_scanner_ptr->get_type () != Scanner::Unknown_scanner;
1043
1043
if (!originating_system_was_recognised)
1044
1044
{
1045
- warning (" Interfile warning: I did not recognise the scanner from 'originating_system' ("
1046
- + get_exam_info (). originating_system + " ) " );
1045
+ info (" Interfile warning: I did not recognise the scanner from 'originating_system' (" + get_exam_info (). originating_system
1046
+ + " ). Hopefully there is enough information present. I will check this now. " );
1047
1047
}
1048
1048
1049
1049
bool mismatch_between_header_and_guess = false ;
@@ -1313,35 +1313,37 @@ InterfilePDFSHeader::post_processing()
1313
1313
// warn if the Interfile header does not provide enough info
1314
1314
1315
1315
if (num_rings < 1 )
1316
- warning (" Interfile warning: 'number of rings' invalid.\n " );
1316
+ warning (" Interfile warning: 'number of rings' invalid." );
1317
1317
if (num_detectors_per_ring < 1 )
1318
- warning (" Interfile warning: 'num_detectors_per_ring' invalid.\n " );
1318
+ warning (" Interfile warning: 'num_detectors_per_ring' invalid." );
1319
1319
#if 0
1320
1320
if (transaxial_FOV_diameter_in_cm < 0)
1321
- warning("Interfile warning: 'transaxial FOV diameter (cm)' invalid.\n ");
1321
+ warning("Interfile warning: 'transaxial FOV diameter (cm)' invalid.");
1322
1322
#endif
1323
1323
if (inner_ring_diameter_in_cm <= 0 )
1324
- warning (" Interfile warning: 'inner ring diameter (cm)' invalid. This might disastrous\n " );
1325
- if (average_depth_of_interaction_in_cm <= 0 )
1326
- warning (" Interfile warning: 'average depth of interaction (cm)' invalid. This might be disastrous.\n " );
1324
+ warning (" Interfile warning: 'inner ring diameter (cm)' invalid. This might be disastrous. " );
1325
+ if (average_depth_of_interaction_in_cm < 0 )
1326
+ warning (" Interfile warning: 'average depth of interaction (cm)' invalid. This might be disastrous." );
1327
1327
if (distance_between_rings_in_cm <= 0 )
1328
- warning (" Interfile warning: 'distance between rings (cm)' invalid.\n " );
1328
+ warning (" Interfile warning: 'distance between rings (cm)' invalid." );
1329
1329
if (default_bin_size_in_cm <= 0 )
1330
- warning (" Interfile warning: 'default_bin size (cm)' invalid.\n " );
1330
+ warning (" Interfile warning: 'default_bin size (cm)' invalid. This will likely cause problems in image reconstruction "
1331
+ " when setting image sizes via 'zoom' etc." );
1331
1332
if (num_axial_crystals_per_singles_unit <= 0 )
1332
- warning (" Interfile warning: 'axial crystals per singles unit' invalid. \n " );
1333
+ warning (" Interfile warning: 'axial crystals per singles unit' invalid (but currently only used for ECAT dead-time). " );
1333
1334
if (num_transaxial_crystals_per_singles_unit <= 0 )
1334
- warning (" Interfile warning: 'transaxial crystals per singles unit' invalid.\n " );
1335
- // new variables for block geometry
1336
- if (axial_distance_between_crystals_in_cm <= 0 )
1337
- warning (" Interfile warning: 'distance between crystals in axial direction (cm)' invalid.\n " );
1338
- if (transaxial_distance_between_crystals_in_cm <= 0 )
1339
- warning (" Interfile warning: 'distance between crystals in transaxial direction (cm)' invalid.\n " );
1340
- if (axial_distance_between_blocks_in_cm <= 0 )
1341
- warning (" Interfile warning: 'distance between blocks in axial direction (cm)' invalid.\n " );
1342
- if (transaxial_distance_between_blocks_in_cm <= 0 )
1343
- warning (" Interfile warning: 'distance between blocks in transaxial direction (cm)' invalid.\n " );
1344
- // end of new variables for block geometry
1335
+ warning (" Interfile warning: 'transaxial crystals per singles unit' invalid (but currently only used for ECAT dead-time)" );
1336
+ if (scanner_geometry == " BlocksOnCylindrical" )
1337
+ {
1338
+ if (axial_distance_between_crystals_in_cm <= 0 )
1339
+ warning (" Interfile warning: 'distance between crystals in axial direction (cm)' invalid." );
1340
+ if (transaxial_distance_between_crystals_in_cm <= 0 )
1341
+ warning (" Interfile warning: 'distance between crystals in transaxial direction (cm)' invalid." );
1342
+ if (axial_distance_between_blocks_in_cm <= 0 )
1343
+ warning (" Interfile warning: 'distance between blocks in axial direction (cm)' invalid." );
1344
+ if (transaxial_distance_between_blocks_in_cm <= 0 )
1345
+ warning (" Interfile warning: 'distance between blocks in transaxial direction (cm)' invalid." );
1346
+ }
1345
1347
}
1346
1348
1347
1349
// finally, we construct a new scanner object with
@@ -1382,8 +1384,8 @@ InterfilePDFSHeader::post_processing()
1382
1384
|| scanner_sptr_from_file->get_type () == Scanner::User_defined_scanner || mismatch_between_header_and_guess
1383
1385
|| !is_consistent)
1384
1386
{
1385
- warning (boost::format (" Interfile parsing ended up with the following scanner:\n %s\n " )
1386
- % scanner_sptr_from_file->parameter_info ());
1387
+ info (boost::format (" Interfile parsing ended up with the following scanner:\n %s\n " )
1388
+ % scanner_sptr_from_file->parameter_info ());
1387
1389
}
1388
1390
1389
1391
// float azimuthal_angle_sampling =_PI/num_views;
0 commit comments