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

BoundsError when trying to access (*some*) Mangal networks #10

Closed
TanyaS08 opened this issue Feb 16, 2024 · 1 comment
Closed

BoundsError when trying to access (*some*) Mangal networks #10

TanyaS08 opened this issue Feb 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@TanyaS08
Copy link
Member

Overview
I want to retrieve a collection of networks from Mangal using network ID's, for this I am using mangalnetwork(). For certain ID values the function behaves as expected but for others it throws the following error: BoundsError: attempt to access 0-element Vector{MangalNetwork} at index [1]. As far as I can tell the IDs that it is throwing an error for should be valid since these are IDs used from a list of networks extracted using Mangal.datasets()

Software versions

  • Julia Version 1.10.0
  • SpeciesInteractionNetwroks Version 0.0.1 (imported using import https://github.com/PoisotLab/SpeciesInteractionNetworks.jl
  • MacOS 14.3.1

Example

# works as expected
mangalnetwork(15)

# throws an error
mangalnetwork(2)
@TanyaS08 TanyaS08 added the bug Something isn't working label Feb 16, 2024
@TanyaS08
Copy link
Member Author

I fear I may have been being an idiot sandwich and the error is user based. I think using the Mangal.datasets is what was the issue - using Mangal.networks seems to work...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant