Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with using output from get_templates in template_correlator #11

Open
tclewis29 opened this issue Mar 31, 2023 · 1 comment
Open

Comments

@tclewis29
Copy link

I am having an issue following your tutorial, using my own data. It seems extremely trivial but I can't work out why it is not working:

# get mean structure template
template_test <- get_templates(reference = lott_churr, path = "./Data/")

# get that template: get correlations
correlations <-
  template_correlator(templates = template_test, # the output from the get_templates() 
                      files = "230302_Nest_7_R3.WAV", # my test survey file
                      path = "./Data/") # where the test survey file is located

When running this I am getting this error:

Error: Not all selections can be read (use check_sels() to locate problematic selections)

Then I run this:

> check_sels(template)
Error: no sound files found

The template_test data.frame is the output from the get_templates and it looks like this:

           sound.files   start     end bottom.freq top.freq selec Annotation template
5 230308_Nest_2_R4.WAV 290.614 290.871           5   9.8005    15      Churr centroid

I am not sure what the check_sels() is referring to? As there is a sound file listed in the template_test data.frame.

Any ideas?

@maRce10
Copy link
Collaborator

maRce10 commented Apr 21, 2023

I think you need to run:

check_sels(template_test, path = "./Data/")

to actually check the template data frame. Let me know what you get.

Still that looks like a bug. Please let me know if you figure it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants