@@ -513,7 +513,9 @@ public File produceReferenceMaterialPerSquid25CSV(boolean numberStyleIsNumeric)
513
513
File reportTableFile = null ;
514
514
if (task .getReferenceMaterialSpots ().size () > 0 ) {
515
515
ReportSettingsInterface reportSettings = new ReportSettings ("RefMat" , true , task );
516
- String [][] report = reportSettings .reportFractionsByNumberStyle (task .getReferenceMaterialSpots (), numberStyleIsNumeric );
516
+ String [][] report = reportSettings .reportFractionsByNumberStyle (task .getReferenceMaterialSpots (),
517
+ numberStyleIsNumeric ,
518
+ ((Task ) task ).produceMapOfRefMatSpotsNames ().keySet ().stream ().toArray (String []::new ));
517
519
reportTableFile = prawnFileHandler .getReportsEngine ().writeReportTableFiles (
518
520
report , projectName + "_RefMatReportTablePerSquid25.csv" );
519
521
}
@@ -539,7 +541,10 @@ public File produceUnknownsPerSquid25CSV(boolean numberStyleIsNumeric)
539
541
File reportTableFile = null ;
540
542
if (task .getUnknownSpots ().size () > 0 ) {
541
543
ReportSettingsInterface reportSettings = new ReportSettings ("Unknowns" , false , task );
542
- String [][] report = reportSettings .reportFractionsByNumberStyle (task .getUnknownSpots (), numberStyleIsNumeric );
544
+ String [][] report =
545
+ reportSettings .reportFractionsByNumberStyle (task .getUnknownSpots (),
546
+ numberStyleIsNumeric ,
547
+ task .getMapOfUnknownsBySampleNames ().keySet ().stream ().toArray (String []::new ));
543
548
reportTableFile = prawnFileHandler .getReportsEngine ().writeReportTableFiles (
544
549
report , projectName + "_UnknownsReportTablePerSquid25.csv" );
545
550
}
@@ -553,7 +558,7 @@ public File produceUnknownsBySampleForETReduxCSV(boolean numberStyleIsNumeric)
553
558
List <ShrimpFractionExpressionInterface > spotsBySampleNames = makeListOfUnknownsBySampleName ();
554
559
if (spotsBySampleNames .size () > 0 ) {
555
560
ReportSettingsInterface reportSettings = new ReportSettings ("UnknownsBySample" , false , task );
556
- String [][] report = reportSettings .reportFractionsByNumberStyle (spotsBySampleNames , numberStyleIsNumeric );
561
+ String [][] report = reportSettings .reportFractionsByNumberStyle (spotsBySampleNames , numberStyleIsNumeric , null );
557
562
reportTableFile = prawnFileHandler .getReportsEngine ().writeReportTableFiles (
558
563
report , projectName + "_UnknownsBySampleReportTableForET_ReduxAndTopsoil.csv" );
559
564
}
@@ -612,38 +617,51 @@ public File produceUnknownsWeightedMeanSortingFieldsCSV()
612
617
public String printProjectAudit () {
613
618
StringBuilder sb = new StringBuilder ();
614
619
615
- sb .append ("Project Audit produced by Squid3 v" ).append (Squid .VERSION ).append (" on " ).append (LocalDate .now ()).append ("\n " );
620
+ sb .append ("Project Audit produced by Squid3 v" ).append (Squid .VERSION ).append (" on " ).append (LocalDate .now ())
621
+ .append (" (see https://github.com/CIRDLES/Squid)" ).append ("\n " );
616
622
sb .append ("Project Name: " ).append (projectName ).append ("\n " );
617
- sb .append ("Analyst Name: " ).append (analystName ).append ("\n " );
623
+ sb .append ("Analyst Name: " ).append (analystName ).append ("\n \n " );
618
624
sb .append ("Data File: " ).append (prawnFileHandler .getCurrentPrawnSourceFileLocation ()).append ("\n " );
619
625
sb .append ("Software: " ).append (getPrawnFileShrimpSoftwareVersionName ()).append ("\n \n " );
620
626
sb .append ("Session\n " );
621
627
sb .append ("\t Login Comment: " ).append (getPrawnFileLoginComment ()).append ("\n " );
622
628
sb .append ("\t Summary\n " );
623
629
sb .append ("\t \t " ).append (generatePrefixTreeFromSpotNames ().buildSummaryDataString ().replaceAll (";" , "\n \t \t " )).append ("\n " );
624
630
sb .append ("\t Total Time in Hours: " ).append ((int ) sessionDurationHours ).append ("\n \n " );
625
- sb .append ("Project Notes:\n " ).append (projectNotes ).append ("\n " );
631
+ sb .append ("Project Notes:\n " ).append (" \t " ). append ( projectNotes ).append ("\n " );
626
632
627
633
//parameters
634
+ sb .append ("\n Project Parameters: " )
635
+ .append ("\n " )
636
+ .append ("\t Ion Counts Normalized for SBM: " )
637
+ .append (useSBM )
638
+ .append ("\n " )
639
+ .append ("\t Ratio Calculation Method: " )
640
+ .append ((task .isUserLinFits () ? "Linear Regression to Burn Mid-Time" : "Spot Average (time-invariant)" ))
641
+ .append ("\n " )
642
+ .append ("\t Preferred index isotope: " )
643
+ .append (task .getSelectedIndexIsotope ().getName ())
644
+ .append ("\n " )
645
+ .append ("\t Weighted Means of RefMat:\n " )
646
+ .append ("\t \t Allow Squid3 to Auto Reject Spots: " ).append (task .isSquidAllowsAutoExclusionOfSpots ())
647
+ .append ("\n " )
648
+ .append ("\t \t Minimum external 1sigma % err for 206Pb/238U: " ).append (task .getExtPErrU ())
649
+ .append ("\n " )
650
+ .append ("\t \t Minimum external 1sigma % err for 208Pb/232Th: " ).append (task .getExtPErrTh ())
651
+ .append ("\n " )
652
+ .append ("\t Parameter Models:\n " )
653
+ .append ("\t \t Def Comm Pb: " ).append (task .getCommonPbModel ().getModelNameWithVersion ())
654
+ .append ("\n " )
655
+ .append ("\t \t Phys Const: " ).append (task .getPhysicalConstantsModel ().getModelNameWithVersion ())
656
+ .append ("\n " )
657
+ .append ("\t \t Ref Mat: " ).append (task .getReferenceMaterialModel ().getModelNameWithVersion ())
658
+ .append ("\n " )
659
+ .append ("\t \t Conc Ref Mat: " ).append (task .getConcentrationReferenceMaterialModel ().getModelNameWithVersion ())
660
+ .append ("\n \n " );
661
+
662
+
628
663
if (task != null ) {
629
- sb .append ("\n Task Name: " ).append (task .getName ());
630
- sb .append ("\n Task Description: " ).append (task .getDescription ());
631
- sb .append ("\n Task Author: " ).append (task .getAuthorName ());
632
- sb .append ("\n Task Lab: " ).append (task .getLabName ());
633
- sb .append ("\n Task Provenance: " ).append (task .getProvenance ());
634
- sb .append ("\n \n Parameters:\n " );
635
- sb .append ("\t Ion Counts Normalized for SBM: " ).append (task .isUseSBM ()).append ("\n " );
636
- sb .append ("\t Ratio Calculation Method: " ).append ((task .isUserLinFits () ? "Linear Regression to Burn Mid-Time" : "Spot Average (time-invariant)" )).append ("\n " );
637
- sb .append ("\t Preferred Index Isotope: " ).append (task .getSelectedIndexIsotope ().getName ()).append ("\n " );
638
- sb .append ("\t Weighted Means of RefMat:\n " );
639
- sb .append ("\t \t Allow Squid3 to Auto Reject Spots: " ).append (task .isSquidAllowsAutoExclusionOfSpots ()).append ("\n " );
640
- sb .append ("\t \t Minimum external 1sigma % err for 206Pb/238U: " ).append (task .getExtPErrU ()).append ("\n " );
641
- sb .append ("\t \t Minimum external 1sigma % err for 208Pb/232Th: " ).append (task .getExtPErrTh ()).append ("\n " );
642
- sb .append ("\t Parameter Models:\n " );
643
- sb .append ("\t \t Def Comm Pb: " ).append (task .getCommonPbModel ().getModelNameWithVersion ()).append ("\n " );
644
- sb .append ("\t \t Phys Const: " ).append (task .getPhysicalConstantsModel ().getModelNameWithVersion ()).append ("\n " );
645
- sb .append ("\t \t Ref Mat: " ).append (task .getReferenceMaterialModel ().getModelNameWithVersion ()).append ("\n " );
646
- sb .append ("\t \t Conc Ref Mat: " ).append (task .getConcentrationReferenceMaterialModel ().getModelNameWithVersion ()).append ("\n " );
664
+ sb .append (task .printTaskSummary ());
647
665
}
648
666
649
667
return sb .toString ();
@@ -775,7 +793,7 @@ public List<String> retrieveRemovedSpotsByName() {
775
793
}
776
794
777
795
public void removeRunsFromPrawnFile (List <Run > runs ) {
778
- if (removedRuns == null ){
796
+ if (removedRuns == null ) {
779
797
removedRuns = new ArrayList <>();
780
798
}
781
799
if (runs .size () > 0 ) {
@@ -949,7 +967,7 @@ public Path generateAllReports() throws IOException {
949
967
950
968
if (generateReportsValid ()) {
951
969
prawnFileHandler .getReportsEngine ().writeProjectAudit ();
952
- prawnFileHandler .getReportsEngine ().writeTaskAudit ();
970
+ // prawnFileHandler.getReportsEngine().writeTaskAudit();
953
971
954
972
prawnFileHandler .getReportsEngine ().writeSummaryReportsForReferenceMaterials ();
955
973
produceReferenceMaterialPerSquid25CSV (true );
0 commit comments