Skip to content

Commit

Permalink
Various (#170)
Browse files Browse the repository at this point in the history
Evolution plots ready for review.
File I/O speedups.
Generalizes reading of Squid3 csv files to handle any number of ratios / masses.
  • Loading branch information
bowring authored Oct 29, 2018
1 parent 17bca6f commit 49217aa
Show file tree
Hide file tree
Showing 16 changed files with 1,120 additions and 285 deletions.
1 change: 0 additions & 1 deletion nb-configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ That way multiple projects can share the same settings (useful for formatting ru
Any value defined here will override the pom.xml file value but is only applicable to the current project.
-->
<org-netbeans-modules-javascript2-requirejs.enabled>true</org-netbeans-modules-javascript2-requirejs.enabled>
<netbeans.hint.jdkPlatform>JDK_1.8</netbeans.hint.jdkPlatform>
</properties>
</project-shared-configuration>
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.71</version>
<version>3.6.72</version>
<description>Successor to U-Pb_Redux</description>
<url>https://cirdles.org</url>
<inceptionYear>2006</inceptionYear>
Expand Down
16 changes: 11 additions & 5 deletions src/main/java/org/earthtime/ETReduxFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -1603,9 +1603,15 @@ public void updateReportTable(boolean performReduction, boolean inLiveMode, Stri
((SampleDateInterpretationsManager) sampleDateInterpDialog).setSample(theSample);
}

try {
((SampleDateInterpretationsManager) sampleDateInterpDialog).refreshSampleDateInterpretations(false, inLiveMode);
} catch (Exception e) {

if ((theSample.getSampleAnalysisType().length() == 0)
||theSample.isAnalysisTypeUSERIES()) {
// oct 2018 problem of time sink involving setselectedrow of tree
} else {
try {
((SampleDateInterpretationsManager) sampleDateInterpDialog).refreshSampleDateInterpretations(false, inLiveMode);
} catch (Exception e) {
}
}
}

Expand Down Expand Up @@ -3660,12 +3666,12 @@ private void manageSampleDateInterpretation(SampleTreeI dateTreeByAliquot, Sampl
myPlotAnyPanel = new PlotAny2Panel(theSample, this);
myUseriesIsochronPanel = new IsochronsPanel(theSample, this);

if (myEvolutionPlotPanel == null) {
// if (myEvolutionPlotPanel == null) {
// myEvolutionPlotPanel = null;
myEvolutionPlotPanel = new EvolutionPlotPanelII(theSample, this);
// PlaceHolderForJavaFxThread placeHolderForJavaFXThread = new PlaceHolderForJavaFxThread();
// placeHolderForJavaFXThread.runme();
}
// }

theSample.getSampleDateInterpretationGUISettings().//
setConcordiaOptions(((ConcordiaPlotDisplayInterface) myConcordiaGraphPanel).getConcordiaOptions());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ public void actionPerformed(ActionEvent arg0) {
}
});
popup.add(menuItem);

if (sample.getIsotopeSystem().compareToIgnoreCase("UTh") == 0) {
menuItem = new JMenuItem("Set Isochrons for this model");
menuItem.addActionListener((ActionEvent arg0) -> {
Expand All @@ -647,7 +647,7 @@ public void actionPerformed(ActionEvent arg0) {
myIsochronDialog.setSize(325, 385);
myIsochronDialog.setVisible(true);
((SampleDateModel) nodeInfo).setIsochronModels(((IsochronsSelectorDialog) myIsochronDialog).getSelectedIsochrons());

getSampleTreeChange().sampleTreeChangeAnalysisMode(node);
});
popup.add(menuItem);
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ public class SampleDateModel extends ValueModel implements
private transient McLeanRegressionLineInterface mcLeanRegressionLine;
private static String unitsForYears = "Ma";
private SortedSet<IsochronModel> isochronModels;
private boolean automaticIsochronSelection;

/**
* creates a new instance of <code>SampleDateModel</code> with all of its
Expand All @@ -192,6 +193,7 @@ public SampleDateModel() {

//this.unitsForYears = "Ma";
this.isochronModels = new TreeSet<>();
this.automaticIsochronSelection = true;
}

/**
Expand Down Expand Up @@ -3174,4 +3176,18 @@ public SortedSet<IsochronModel> getIsochronModels() {
public void setIsochronModels(SortedSet<IsochronModel> isochronModels) {
this.isochronModels = isochronModels;
}

/**
* @return the automaticIsochronSelection
*/
public boolean isAutomaticIsochronSelection() {
return automaticIsochronSelection;
}

/**
* @param automaticIsochronSelection the automaticIsochronSelection to set
*/
public void setAutomaticIsochronSelection(boolean automaticIsochronSelection) {
this.automaticIsochronSelection = automaticIsochronSelection;
}
}
4 changes: 3 additions & 1 deletion src/main/java/org/earthtime/UTh_Redux/samples/SampleUTh.java
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,9 @@ public static ValueModel generateDefaultSampleDateModel(){
ValueModel defaultSDM = new SampleDateModel();

defaultSDM.setName("DEFAULT");
((SampleDateModel)defaultSDM).setIsochronModels(IsochronModel.generateDefaultEvolutionIsochronModels());
((SampleDateModel)defaultSDM).setIsochronModels(
IsochronModel.generateDefaultEvolutionIsochronModels());
((SampleDateModel)defaultSDM).setAutomaticIsochronSelection(true);

return defaultSDM;
}
Expand Down
Loading

0 comments on commit 49217aa

Please sign in to comment.