Skip to content

Commit faff2d3

Browse files
committed
Add detection of Radiacode and Raysid models when read-in from not their native files.
1 parent 0eea976 commit faff2d3

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

src/SpecFile.cpp

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6848,6 +6848,22 @@ void SpecFile::set_detector_type_from_other_info()
68486848
return;
68496849
}//if( icontains(instrument_model_, "Fulcrum") )
68506850

6851+
if( icontains(instrument_model_, "RadiaCode") )
6852+
{
6853+
if( manufacturer_.empty() )
6854+
manufacturer_ = "Scan-Electronics";
6855+
detector_type_ = SpecUtils::DetectorType::RadiaCode;
6856+
return;
6857+
}
6858+
6859+
if( icontains(instrument_model_, "Raysid") )
6860+
{
6861+
if( manufacturer_.empty() )
6862+
manufacturer_ = "IN-NEW";
6863+
detector_type_ = SpecUtils::DetectorType::Raysid;
6864+
return;
6865+
}
6866+
68516867

68526868
if( manufacturer_.size() || instrument_model_.size() )
68536869
{
@@ -6866,7 +6882,6 @@ void SpecFile::set_detector_type_from_other_info()
68666882
&& !(manufacturer_=="" && instrument_model_=="3x3x12 inch NaI Side Ortec Digibase MCA")
68676883
&& !(manufacturer_=="Canberra Industries, Inc." && instrument_model_=="ASP EDM")
68686884
&& !(manufacturer_=="Raytheon" && instrument_model_=="Variant C")
6869-
&& !(manufacturer_=="Scan-Electronics" && instrument_model_=="RadiaCode-102")
68706885
&& !(manufacturer_=="Unknown" && instrument_model_=="Unknown")
68716886
&& !icontains( manufacturer_, "RIDs R Us")
68726887
&& !icontains( manufacturer_, "SRPMs R Us")

0 commit comments

Comments
 (0)