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

Reference to non-existent field 'young' #7

Open
eelxpeng opened this issue Jun 12, 2018 · 1 comment
Open

Reference to non-existent field 'young' #7

eelxpeng opened this issue Jun 12, 2018 · 1 comment

Comments

@eelxpeng
Copy link

Hi, thanks for sharing the code. When I tried to run the synthesis data with RRest_v3 as described in the video, I got the following error:

Reference to non-existent field 'young'.

Error in specific_vortal_stats (line 30)
    if sum(rel_subj_els.young == subj_no)

As I checked with breakpoint, rel_subj_els indeed doesn't have young field. Could you help me with this?

@peterhcharlton
Copy link
Owner

Hi, many thanks for pointing this out. I have now corrected this by changing line 341 of "calc_stats.m" in version 3 of the code to read:
calc_vortal_stats = 0;
Setting this to zero stops the code trying to calculate these statistics. These statistics are particular to this study, but they are not required for your analysis.

I hope this fixes the issue.

Best wishes,

Pete

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