Skip to content

Commit

Permalink
Fixup some formatting for Simple MDA.
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjohns committed Jun 15, 2024
1 parent 44cc7e7 commit 1a01e22
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
6 changes: 3 additions & 3 deletions InterSpec_resources/app_text/DetectionLimitSimple.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
<message id="dls-qr-tool-state-title">Simple MDA Tool State</message>
<message id="dls-qr-tool-state-txt">Current state of the Simple MDA tool.</message>

<message id="dls-det-act-with-range">Detected activity of {1}, with range [{2}, {3}], @{4} CL</message>
<message id="dls-det-counts-with-range">Excess counts of {1}, with range [{2}, {3}], @{4} CL</message>
<message id="dls-det-act-with-range">Detected: {1}, range [{2}, {3}], @{4} CL</message>
<message id="dls-det-counts-with-range">Excess counts: {1}, range [{2}, {3}], @{4} CL</message>
<message id="dls-det-act-less-zero">Activity &lt; 0 {1} (observed significantly fewer counts than expected).</message>
<message id="dls-det-counts-less-zero">Excess counts &lt; 0 {2} (observed significantly fewer counts than expected).</message>
<message id="dls-det-upper-bound">Less than {1} present @{2} CL.</message>
Expand Down Expand Up @@ -76,4 +76,4 @@
<message id="dls-"></message>
<message id="dls-"></message>
<message id="dls-"></message>
</messages>
</messages>
6 changes: 0 additions & 6 deletions src/DetectionLimitSimple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1415,12 +1415,6 @@ void DetectionLimitSimple::updateSpectrumDecorationsAndResultText()
const string lowerstr = PhysicalUnits::printToBestActivityUnits(result.lowerLimit, 3, use_curie);
const string upperstr = PhysicalUnits::printToBestActivityUnits(result.upperLimit, 3, use_curie);

const string cl_txt = "Estimated activity of " + nomstr + ".";

const string sum_txt = "Detected activity of " + nomstr + "."
"<br/>"
"Range: [" + lowerstr + ", " + upperstr + "] @" + cl_str + " CL";

chart_title = WString::tr("dls-chart-title-estimated-act").arg(nomstr);
result_txt = WString::tr("dls-results-txt-estimated-act").arg(nomstr).arg(lowerstr).arg(upperstr).arg(cl_str);
}//if( !m_currentNuclide ) / else
Expand Down
2 changes: 1 addition & 1 deletion src/DetectionLimitTool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2063,7 +2063,7 @@ SimpleDialog *DetectionLimitTool::createCurrieRoiMoreInfoWindow( const SandiaDec
nomstr = PhysicalUnits::printToBestActivityUnits( nominal_act, 2, useCuries )
+ DetectorPeakResponse::det_eff_geom_type_postfix( det_geom );
if( nominal_act < 0 )
nomstr = "< " + PhysicalUnits::printToBestActivityUnits( 0.0, 2, useCuries )
nomstr = "&lt; " + PhysicalUnits::printToBestActivityUnits( 0.0, 2, useCuries )
+ DetectorPeakResponse::det_eff_geom_type_postfix( det_geom );
}else
{
Expand Down

0 comments on commit 1a01e22

Please sign in to comment.