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

fafbseg.flywire.synapses.fetch_adjacency doesn't recognize lists as inputs #10

Closed
jialumaomao opened this issue Apr 6, 2022 · 1 comment

Comments

@jialumaomao
Copy link

In fafbseg/utils.py, we have the following function:
def make_iterable(x, force_type = None)And when passing a list, utils.make_iterable is called in `fafbseg/flywire/utils.py:


 if isinstance(x, navis.BaseNeuron):
    ids = [x.id]
 elif isinstance(x, navis.NeuronList):
    ids = x.id
 elif isinstance(x, (int, [np.int](http://np.int/))):
    ids = [x]
 else:
    ids = utils.make_iterable(x, dtype=np.int64)

But an error occurs, because the parameters do not match the function declaration.

@schlegelp
Copy link
Collaborator

This has already been fixed in 8d14792. Install from Github and try again please.

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