From b80bb36006ee838f3494852259ea0c2cb2eecb7a Mon Sep 17 00:00:00 2001 From: William Johnson Date: Mon, 9 Sep 2024 14:47:57 -0700 Subject: [PATCH] Add batch act/shield HTML summary template --- .../ShieldSourceFitLog/std_summary.tmplt.html | 260 ++++++++++++++++++ 1 file changed, 260 insertions(+) create mode 100644 InterSpec_resources/static_text/ShieldSourceFitLog/std_summary.tmplt.html diff --git a/InterSpec_resources/static_text/ShieldSourceFitLog/std_summary.tmplt.html b/InterSpec_resources/static_text/ShieldSourceFitLog/std_summary.tmplt.html new file mode 100644 index 00000000..cad5ec03 --- /dev/null +++ b/InterSpec_resources/static_text/ShieldSourceFitLog/std_summary.tmplt.html @@ -0,0 +1,260 @@ + + + + + + Summary Results + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {% if exists("InterSpecExecutablePath") %} + + + + {% endif %} + + + + +
Analysis time: {{ AnalysisTime }}
Working dir: {{ CurrentWorkingDirectory }}
Exe build date: {{ InterSpecCompileDateIso }}
Exe path: {{ InterSpecExecutablePath }}
Exemplar File: + {{ ExemplarFile }} {% if exists("ExemplarSampleNumbers") %}, exemplar samples: {{ ExemplarSampleNumbers }}{% endif %} +
+ + +## for file in Files +
+

+ Results for {{ file.Filename }} +

+ +
+
+ + + +
+
    +
  • + + + + + + + + + + + + + + + + + + + + + {% if file.foreground.HasNeutrons %} + + + + + + + + + + + {% endif %} + + {% if existsIn(file.foreground,"SpectrumTitle") %} + + + + + {% endif %} + + + + + + + + + + + + + + + + {% if file.foreground.HasGps %} + + + {% endif %} + + {% if file.foreground.HasInstrumentRid %} + + + + + {% endif %} +
    Live Time: + {{ printFixed(file.foreground.LiveTime_s,3) }} seconds ({{ file.foreground.LiveTime }}) + Real Time: + {{ printFixed(file.foreground.RealTime_s,3) }} seconds ({{ file.foreground.RealTime }}) + Dead Time: + {{ printFixed(file.foreground.DeadTime_percent,2) }}% +
    Meas. Time: + {% if file.foreground.StartTimeIsValid %} + {{ file.foreground.StartTime }} + {% else %} + Not Available + {% endif %} + Gamma Sum: {{ printCompact(file.foreground.GammaSum,6) }} countsGamma CPS: {{ printCompact(file.foreground.GammaCps,5) }}
    Neutron Count: file.foreground.NeutronSum Neut. Live Time: file.foreground.NeutronLiveTime Neutron CPS: {{ printFixed(file.foreground.NeutronCps,4) }}
    Title: {{ file.foreground.SpectrumTitle }}
    Manufacturer: {% if existsIn(file.foreground,"Manufacturer") %} {{ file.foreground.Manufacturer }} {% else %} -- {% endif %} Det. Type: {% if existsIn(file.foreground,"DetectorType") %} {{ file.foreground.DetectorType }} {% else %} -- {% endif %} Inst. Model: {% if existsIn(file.foreground,"InstrumentModel") %} {{ file.foreground.InstrumentModel }} {% else %} -- {% endif %}
    Serial Number: {% if existsIn(file.foreground,"SerialNumber") %} {{ file.foreground.SerialNumber }} {% else %} -- {% endif %} lat/lon: {{ printFixed(file.foreground.Latitude,7) }}{{ printFixed(file.foreground.Longitude,7) }}
    Inst. RID: {{ file.foreground.InstrumentRidSummary }}
    +
  • +
+
+ +
+ Sources: + + + + + {% if file.AnySourceAgeFit %} + + + {% endif %} + + + + {% if file.HasTraceSource %} + + + + {% endif %} + + +## for src in file.Sources + + + + {% if file.AnySourceAgeFit %} + + + {% endif %} + + + + {% if file.HasTraceSource %} + + + + {% endif %} + +## endfor + +
NuclideAgeAge UncertAge Fit?ActivityActivity UncertActivity Fit?Trace Src Act.Trace Src Act. UncertIs Trace Src
{{ src.Nuclide }} {{ src.Age }} {% if src.AgeIsFit %} {{ src.AgeUncert }} {% endif %} {{ src.AgeIsFit }} {{ src.Activity }} {% if src.ActivityIsFit %} {{ src.ActivityUncert }} {% endif %} {{ src.ActivityIsFit }} {% if src.IsTraceSource %} {{src.TraceDisplayActivity}} {% endif %} {% if src.IsTraceSource and src.ActivityIsFit %} {{ src.TraceDisplayActivityUncert }} {% endif %} {{ src.IsTraceSource }}
+
+ +
+
    +
  • There were {{ file.NumDof }} parameters fit for
  • +
  • It took {{ file.NumberFcnCalls }} solution trials to reach chi2={{ printCompact(file.FitChi2,5) }} with an estimated distance to minumum of {{ printCompact(file.EstimatedDistanceToMinimum,5) }}
  • +
+
+## endfor + + + +