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

Surrogate Data #53

Open
AdrianaChieng opened this issue Oct 3, 2021 · 1 comment
Open

Surrogate Data #53

AdrianaChieng opened this issue Oct 3, 2021 · 1 comment

Comments

@AdrianaChieng
Copy link

AdrianaChieng commented Oct 3, 2021

Hi, I couldn't generate surrogate data. Can i get some advice please?

Surrogate Data

It's written index out of range

@nickduran
Copy link
Owner

Hi! Many thanks for providing a screen capture of the problem. I know exactly what the issue is as this happens to me all the time. There is no problem with the code, but the issue is with your filenames. When you call the calculate_baseline_alignment function, you need to make sure that the following three parameters are reflected in your filenames:

id_separator='\_',
dyad_label='dyad',
condition_label='cond')

That is, if your filename is something like 504-2.txt, this isn't going to work. You need it to be explicitly labeled dyad504_cond2.txt. And pay attention to the underscore vs. dash in separating the dyad info and the condition info.

Because this is such a common issue, I have now added a raise Exception comment that will flag this issue to the user.

Thanks for using ALIGN and helping to make it better. I'm back to improving ALIGN and adding new features.

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