From 5195549357839e1c15b61a4b3e47a0da999af685 Mon Sep 17 00:00:00 2001 From: Jamie Mac Date: Tue, 8 Feb 2022 10:56:12 +0000 Subject: [PATCH] Matched click classifier now has template names The name field of the imported templates is now the file name of the template. --- src/matchedTemplateClassifer/ImportTemplateCSV.java | 2 +- src/matchedTemplateClassifer/ImportTemplateMAT.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/matchedTemplateClassifer/ImportTemplateCSV.java b/src/matchedTemplateClassifer/ImportTemplateCSV.java index 1253a791..c3c1be20 100644 --- a/src/matchedTemplateClassifer/ImportTemplateCSV.java +++ b/src/matchedTemplateClassifer/ImportTemplateCSV.java @@ -53,7 +53,7 @@ public class ImportTemplateCSV implements TemplateImport { //now create waveform // System.out.println("Create a waveform with " + waveform.length + " samples with a sample rate of " // + sR + " Hz"); - MatchTemplate matchedTemplate = new MatchTemplate("Imported Waveform", waveform, sR); + MatchTemplate matchedTemplate = new MatchTemplate(filePath.getName(), waveform, sR); //TODO return matchedTemplate; } diff --git a/src/matchedTemplateClassifer/ImportTemplateMAT.java b/src/matchedTemplateClassifer/ImportTemplateMAT.java index 821522fe..c246b0d2 100644 --- a/src/matchedTemplateClassifer/ImportTemplateMAT.java +++ b/src/matchedTemplateClassifer/ImportTemplateMAT.java @@ -60,7 +60,7 @@ public class ImportTemplateMAT implements TemplateImport { //now create waveform // System.out.println("Create a waveform with " + waveform.length + " samples with a sample rate of " // + sR + " Hz"); - MatchTemplate matchedTemplate = new MatchTemplate("Imported Waveform", waveform, sR); + MatchTemplate matchedTemplate = new MatchTemplate(filePath.getName(), waveform, sR); return matchedTemplate; } catch (FileNotFoundException e) {