Skip to content

Commit

Permalink
Corrects a nasty bug with the new pick merging logic that was causing…
Browse files Browse the repository at this point in the history
… AP picks to not be cleared correctly in all circumstances.
  • Loading branch information
justinbarno committed Aug 16, 2022
1 parent 2c76231 commit 7e3fe1f
Show file tree
Hide file tree
Showing 19 changed files with 24 additions and 35 deletions.
2 changes: 1 addition & 1 deletion calibration-gui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>gov.llnl.gnem.apps.coda.calibration</groupId>
<artifactId>coda-calibration</artifactId>
<version>1.0.18.2</version>
<version>1.0.18.3</version>
</parent>

<artifactId>calibration-gui</artifactId>
Expand Down
1 change: 1 addition & 0 deletions calibration-service/calibration-application/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target/
2 changes: 1 addition & 1 deletion calibration-service/calibration-application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>gov.llnl.gnem.apps.coda.calibration</groupId>
<artifactId>calibration-service</artifactId>
<version>1.0.18.2</version>
<version>1.0.18.3</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
1 change: 1 addition & 0 deletions calibration-service/calibration-model/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target/
2 changes: 1 addition & 1 deletion calibration-service/calibration-model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>gov.llnl.gnem.apps.coda.calibration</groupId>
<artifactId>calibration-service</artifactId>
<version>1.0.18.2</version>
<version>1.0.18.3</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,13 @@ public Waveform mergeNonNullOrEmptyFields(Waveform waveformOverlay) {
p.setWaveform(null);
}
}

if (!waveformOverlay.getAssociatedPicks().stream().anyMatch(p -> PICK_TYPES.AP.getPhase().equals(p.getPickName()))) {
WaveformPick p = picksByName.remove(PICK_TYPES.AP.getPhase());
if (p != null) {
p.setWaveform(null);
}
}
this.setAssociatedPicks(new ArrayList<>(picksByName.values()));
}
if (waveformOverlay.isActive() != null) {
Expand Down
1 change: 1 addition & 0 deletions calibration-service/calibration-repository/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target/
2 changes: 1 addition & 1 deletion calibration-service/calibration-repository/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>gov.llnl.gnem.apps.coda.calibration</groupId>
<artifactId>calibration-service</artifactId>
<version>1.0.18.2</version>
<version>1.0.18.3</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
1 change: 1 addition & 0 deletions calibration-service/calibration-service-api/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target/
2 changes: 1 addition & 1 deletion calibration-service/calibration-service-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>gov.llnl.gnem.apps.coda.calibration</groupId>
<artifactId>calibration-service</artifactId>
<version>1.0.18.2</version>
<version>1.0.18.3</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
1 change: 1 addition & 0 deletions calibration-service/calibration-service-impl/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target/
2 changes: 1 addition & 1 deletion calibration-service/calibration-service-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>gov.llnl.gnem.apps.coda.calibration</groupId>
<artifactId>calibration-service</artifactId>
<version>1.0.18.2</version>
<version>1.0.18.3</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion calibration-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>gov.llnl.gnem.apps.coda.calibration</groupId>
<artifactId>coda-calibration</artifactId>
<version>1.0.18.2</version>
<version>1.0.18.3</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
1 change: 1 addition & 0 deletions calibration-standalone/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target/
2 changes: 1 addition & 1 deletion calibration-standalone/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>gov.llnl.gnem.apps.coda.calibration</groupId>
<artifactId>coda-calibration</artifactId>
<version>1.0.18.2</version>
<version>1.0.18.3</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
24 changes: 0 additions & 24 deletions common-gui/.gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion externals/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>gov.llnl.gnem.apps.coda.calibration</groupId>
<artifactId>coda-calibration</artifactId>
<version>1.0.18.2</version>
<version>1.0.18.3</version>
</parent>

<artifactId>externals</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion mapping/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>gov.llnl.gnem.apps.coda.calibration</groupId>
<artifactId>coda-calibration</artifactId>
<version>1.0.18.2</version>
<version>1.0.18.3</version>
</parent>

<groupId>gov.llnl.gnem.apps.coda.common</groupId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>gov.llnl.gnem.apps.coda.calibration</groupId>
<artifactId>coda-calibration</artifactId>
<version>1.0.18.2</version>
<version>1.0.18.3</version>
<name>coda-calibration</name>

<packaging>pom</packaging>
Expand Down

0 comments on commit 7e3fe1f

Please sign in to comment.