Matched click classifier now has template names

The name field of the imported templates is now the file name of the template.
This commit is contained in:
Jamie Mac 2022-02-08 10:56:12 +00:00
parent deb2409e56
commit 5195549357
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ public class ImportTemplateCSV implements TemplateImport {
//now create waveform //now create waveform
// System.out.println("Create a waveform with " + waveform.length + " samples with a sample rate of " // System.out.println("Create a waveform with " + waveform.length + " samples with a sample rate of "
// + sR + " Hz"); // + sR + " Hz");
MatchTemplate matchedTemplate = new MatchTemplate("Imported Waveform", waveform, sR); MatchTemplate matchedTemplate = new MatchTemplate(filePath.getName(), waveform, sR);
//TODO //TODO
return matchedTemplate; return matchedTemplate;
} }

View File

@ -60,7 +60,7 @@ public class ImportTemplateMAT implements TemplateImport {
//now create waveform //now create waveform
// System.out.println("Create a waveform with " + waveform.length + " samples with a sample rate of " // System.out.println("Create a waveform with " + waveform.length + " samples with a sample rate of "
// + sR + " Hz"); // + sR + " Hz");
MatchTemplate matchedTemplate = new MatchTemplate("Imported Waveform", waveform, sR); MatchTemplate matchedTemplate = new MatchTemplate(filePath.getName(), waveform, sR);
return matchedTemplate; return matchedTemplate;
} catch (FileNotFoundException e) { } catch (FileNotFoundException e) {