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

Error fetching synapses from minnie35 #49

Open
schlegelp opened this issue Aug 16, 2021 · 2 comments
Open

Error fetching synapses from minnie35 #49

schlegelp opened this issue Aug 16, 2021 · 2 comments

Comments

@schlegelp
Copy link

Hi. I've been trying to fetch synapses for 864691138134948293 (via minnie35_public_v0) and ran into the following error:

>>> client = CAVEclient('minnie35_public_v0') 
>>> pre = client.materialize.synapse_query(pre_ids=864691138134948293)

~/.pyenv/versions/3.7.5/lib/python3.7/site-packages/caveclient/frameworkclient.py in materialize(self)
    290                 datastack_name=self._datastack_name,
    291                 cg_client=self.chunkedgraph,
--> 292                 synapse_table=self.info.get_datastack_info().get("synapse_table", None),
    293             )
    294         return self._materialize

~/.pyenv/versions/3.7.5/lib/python3.7/site-packages/caveclient/materializationengine.py in MaterializationClient(server_address, datastack_name, auth_client, cg_client, synapse_table, api_version, version, verify)
    147         synapse_table=synapse_table,
    148         version=version,
--> 149         verify=verify,
    150     )
    151 

~/.pyenv/versions/3.7.5/lib/python3.7/site-packages/caveclient/materializationengine.py in __init__(self, server_address, auth_header, api_version, endpoints, server_name, datastack_name, cg_client, synapse_table, version, verify)
    175         self._datastack_name = datastack_name
    176         if version is None:
--> 177             version = self.most_recent_version()
    178         self._version = version
    179         self.cg_client = cg_client

~/.pyenv/versions/3.7.5/lib/python3.7/site-packages/caveclient/materializationengine.py in most_recent_version(self, datastack_name)
    212         """
    213         versions = self.get_versions(datastack_name=datastack_name)
--> 214         return np.max(np.array(versions))
    215 
    216     def get_versions(self, datastack_name=None):

<__array_function__ internals> in amax(*args, **kwargs)

~/.pyenv/versions/3.7.5/lib/python3.7/site-packages/numpy/core/fromnumeric.py in amax(a, axis, out, keepdims, initial, where)
   2753     """
   2754     return _wrapreduction(a, np.maximum, 'max', axis, None, out,
-> 2755                           keepdims=keepdims, initial=initial, where=where)
   2756 
   2757 

~/.pyenv/versions/3.7.5/lib/python3.7/site-packages/numpy/core/fromnumeric.py in _wrapreduction(obj, ufunc, method, axis, dtype, out, **kwargs)
     84                 return reduction(axis=axis, out=out, **passkwargs)
     85 
---> 86     return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
     87 
     88 

ValueError: zero-size array to reduction operation maximum which has no identity
@sdorkenw
Copy link
Collaborator

Hi Philipp. Sorry about that. We have not uploaded the minnie35 synapses for querying just yet... Will ping you here when they are available.

@schlegelp
Copy link
Author

Thanks! Casey beat you to the punchline on Slack :)
I don't really need that specific neuron but thought I'd leave a report in case that was a bug.

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