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

get_nodes needs broadcasting .= in setindex! #31

Open
shf43 opened this issue Nov 6, 2020 · 1 comment
Open

get_nodes needs broadcasting .= in setindex! #31

shf43 opened this issue Nov 6, 2020 · 1 comment

Comments

@shf43
Copy link

shf43 commented Nov 6, 2020

Hi,

Thanks a for building this tool, it is really helpful!

I got an error as

ArgumentError: indexed assignment with a single value to many locations is not supported; perhaps use broadcasting .= instead?

when I used get_nodes.

It worked for me before but I was trying a new set of data. I am new to Julia and just wondered if there is any ways I could go around with it. Or it might be something wrong with the data sturcture?

Thanks a lot,
Ryan

@Tchanders
Copy link
Owner

Hi, I'm glad you're finding this helpful, and thanks for reporting the issue.

Julia versions >1.0 disallow certain ways of assigning values to an array that were allowed in previous versions. I can't find the problem in NetworkInference, but it might be in your version of InformationMeasures (a dependency of NetworkInference), since it was recently fixed there.

Failing that, there could be a problem with the data if it worked with other datasets...

Did you see a stack trace or file/line number with your error?

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