Merge pull request #51 from PAMGuard/main

get whistle det fix
This commit is contained in:
Douglas Gillespie 2023-12-18 18:25:29 +00:00 committed by GitHub
commit bfbb58ea5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 17 deletions

View File

@ -4,7 +4,7 @@
<groupId>org.pamguard</groupId>
<artifactId>Pamguard</artifactId>
<name>Pamguard Java12+</name>
<version>2.02.09c</version>
<version>2.02.09e</version>
<description>Pamguard for Java 12+, using Maven to control dependcies</description>
<url>www.pamguard.org</url>
<organization>

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.pamguard</groupId>
<artifactId>Pamguard</artifactId>
<version>2.02.09d</version>
<version>2.02.09e</version>
<name>Pamguard Java12+</name>
<description>Pamguard for Java 12+, using Maven to control dependcies</description>
<url>www.pamguard.org</url>

View File

@ -24,19 +24,19 @@ public class PamguardVersionInfo {
* PAMGuard can work with.
*/
static public final String minJavaVersion = "11.0.0";
static public final String maxJavaVersion = "19.99.99";
static public final String maxJavaVersion = "21.99.99";
/**
* Version number, major version.minorversion.sub-release.
* Note: can't go higher than sub-release 'f'
*/
static public final String version = "2.02.09c";
static public final String version = "2.02.09e";
/**
* Release date
*/
static public final String date = "10 November 2023";
static public final String date = "18 December 2023";
// /**
// * Release type - Beta or Core

View File

@ -601,7 +601,6 @@ public class PamGui extends PamView implements WindowListener, PamSettings {
fileMenu.add(menuItem);
}
if (SMRUEnable.isEnable()) {
menuItem = new JMenuItem("Import PAMGuard Modules");
menuItem.setToolTipText("Import module settings from a different PAMGuard configuration (psfx files only");
menuItem.addActionListener(new ActionListener() {
@ -611,7 +610,6 @@ public class PamGui extends PamView implements WindowListener, PamSettings {
}
});
fileMenu.add(menuItem);
}
fileMenu.addSeparator();

View File

@ -82,7 +82,13 @@ public class StubRemover {
private int searchStubSize(List<SliceData> sliceData, int currentSlice, int peakInd, int searchDir, int diagGap, int currentSize) {
int nSlice = sliceData.size();
int nextSliceInd = currentSlice + searchDir;
if (nextSliceInd < 0 || nextSliceInd >= nSlice-1) {
/**
* This function is only every used to throw away very small stubs, so there is no need to get the full size
* of every one. It's OK to return as soon as the size is bigger than the minimum required to make
* something worth keeping. This reduces the time spent tracing down every little alley which was
* severely impacting performance for larger whistles.
*/
if (nextSliceInd < 0 || nextSliceInd >= nSlice-1 || currentSize > whistleControl.getWhistleToneParameters().minPixels) {
return currentSize;
}
SliceData nextSlice = sliceData.get(nextSliceInd);