Skip to content

Commit

Permalink
Maintenance release. (#158)
Browse files Browse the repository at this point in the history
* fixes issues reported by noah and terry

* new version - maintenance
  • Loading branch information
bowring authored Sep 19, 2017
1 parent 6489e0f commit 6ff9e8e
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<groupId>org.cirdles</groupId>
<artifactId>ET_Redux</artifactId>
<name>ET_Redux</name>
<version>3.6.25</version>
<version>3.6.26</version>
<description>Successor to U-Pb_Redux</description>
<url>https://cirdles.org</url>
<inceptionYear>2006</inceptionYear>
Expand Down
12 changes: 5 additions & 7 deletions src/main/java/org/earthtime/Tripoli/sessions/TripoliSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,7 @@ private void applyFractionationCorrectionsForDownhole() {

private void fractionationCorrectFractionSetForDownholeSessionRatio(//
FractionSelectionTypeEnum fractionSelectionTypeEnum, AbstractFunctionOfX sessionFofX, double sessionStandardValue, RawRatioNames rrName) {

if (prepareMatrixJfMapFractionsByType(fractionSelectionTypeEnum)) {
SortedSet<TripoliFraction> selectedFractions = FractionsFilterInterface.getTripoliFractionsFiltered(tripoliFractions, fractionSelectionTypeEnum, IncludedTypeEnum.INCLUDED);

Expand Down Expand Up @@ -1423,11 +1423,11 @@ private void fractionationCorrectFractionSetForDownholeSessionRatio(//
for (int i = 0; i < countOfSelectedFractions; i++) {
diagonalOfSessionUnknownsAnalyticalCovarianceSu[i] = selectedFractionsAnalyticalCovarianceSu.get(i, i);
}

if (fractionSelectionTypeEnum.compareTo(FractionSelectionTypeEnum.UNKNOWN) == 0) {
sessionFofX.setDiagonalOfSessionUnknownsAnalyticalCovarianceSu(diagonalOfSessionUnknownsAnalyticalCovarianceSu);
applyDownholeFractionationCorrectionToUnknownRatios(FractionSelectionTypeEnum.UNKNOWN, //
sessionFofX, selectedFractionIDs, countOfSelectedFractions, selectedFractionsAnalyticalCovarianceSu, sessionStandardValue, rrName, rrName.getName());
applyDownholeFractionationCorrectionToUnknownRatios(FractionSelectionTypeEnum.UNKNOWN, //
sessionFofX, selectedFractionIDs, countOfSelectedFractions, selectedFractionsAnalyticalCovarianceSu, sessionStandardValue, rrName, rrName.getName());
} else {
sessionFofX.setDiagonalOfSessionStandardsAnalyticalCovarianceSu(diagonalOfSessionUnknownsAnalyticalCovarianceSu);
}
Expand All @@ -1438,7 +1438,6 @@ private void fractionationCorrectFractionSetForDownholeSessionRatio(//
// sessionFofX, selectedFractionIDs, countOfSelectedFractions, selectedFractionsAnalyticalCovarianceSu, sessionStandardValue, rrName, rrName.getName());
// // }
// }

} // end test if any unknowns
}
}
Expand Down Expand Up @@ -1651,8 +1650,7 @@ public void setTripoliFractions(SortedSet<TripoliFraction> tripoliFractions) {
@Override
public void includeAllFractions(FractionSelectionTypeEnum fractionSelectionType) {
SortedSet<TripoliFraction> excludedTripoliFractions
= //
FractionsFilterInterface.getTripoliFractionsFiltered(tripoliFractions, fractionSelectionType, IncludedTypeEnum.EXCLUDED);
= FractionsFilterInterface.getTripoliFractionsFiltered(tripoliFractions, fractionSelectionType, IncludedTypeEnum.EXCLUDED);
excludedTripoliFractions.stream().forEach((f) -> {
f.toggleAllDataExceptShaded(true);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
import org.earthtime.UPb_Redux.dateInterpretation.kwiki.KwikiDateModesSelectorPanel;
import org.earthtime.UPb_Redux.dateInterpretation.kwiki.KwikiSynopticOutputPanel;
import org.earthtime.UPb_Redux.exceptions.BadLabDataException;
import org.earthtime.UPb_Redux.expressions.MathMachineII;
import org.earthtime.UPb_Redux.filters.XMLFileFilter;
import org.earthtime.UPb_Redux.fractions.FractionI;
import org.earthtime.UPb_Redux.fractions.UPbReduxFractions.UPbFraction;
Expand All @@ -74,6 +75,7 @@
import org.earthtime.UPb_Redux.fractions.UPbReduxFractions.fractionReduction.UPbFractionReducer;
import org.earthtime.UPb_Redux.fractions.UPbReduxFractions.fractionReduction.UncertaintyGraphPanel;
import org.earthtime.UPb_Redux.fractions.UPbReduxFractions.fractionReduction.UncertaintyZoomLayer;
import org.earthtime.UPb_Redux.utilities.BrowserControl;
import org.earthtime.UPb_Redux.utilities.Thumbnail;
import org.earthtime.UPb_Redux.valueModels.MeasuredRatioModel;
import org.earthtime.UPb_Redux.valueModels.ValueModel;
Expand Down Expand Up @@ -4589,8 +4591,12 @@ private void r18O_16OUsed_textOnUTabKeyReleased (java.awt.event.KeyEvent evt) {/
}//GEN-LAST:event_r18O_16OUsed_textOnUTabKeyReleased

private void testMathMachineAlphaUActionPerformed (java.awt.event.ActionEvent evt) {//GEN-FIRST:event_testMathMachineAlphaUActionPerformed
// MathMachineII.outputExpressionFilesXML( ((UPbFraction) myFraction).getAnalysisMeasure( AnalysisMeasures.alphaU.getName() ), "MathMachine", true );
// BrowserControl.displayURL( "./MathMachine/alphaU.html" );//xml" );
try {
MathMachineII.outputExpressionFilesXML(((UPbFraction) myFraction).getAnalysisMeasure(AnalysisMeasures.alphaPb.getName()), "MathMachine", true);

} catch (IOException iOException) {
}
BrowserControl.displayURL( "./MathMachine/alphaU.html" );//xml" );
}//GEN-LAST:event_testMathMachineAlphaUActionPerformed

private void r18O_16OUsed_textOnUTabFocusLost (java.awt.event.FocusEvent evt) {//GEN-FIRST:event_r18O_16OUsed_textOnUTabFocusLost
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2207,6 +2207,9 @@ private void saveSaveAsOK(boolean doSaveAs) {

// dec 2011 update sample date models
SampleInterface.updateAndSaveSampleDateModelsByAliquot(mySample);

// Sept 2017
mySample.initFilteredFractionsToAll();

close();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,9 @@ public void setFractionCategory2(ReportCategoryInterface fractionCategory2) {
@Override
public boolean isOutOfDate() {
boolean retVal = false;
if (defaultReportSpecsType == null){
defaultReportSpecsType = "UPb";
}
switch (defaultReportSpecsType) {
case "UPb":
retVal = isOutOfDateUPb();
Expand Down

0 comments on commit 6ff9e8e

Please sign in to comment.