Skip to content

Instantly share code, notes, and snippets.

@mwatts15
Created January 25, 2015 20:17
Show Gist options
  • Save mwatts15/03de5258bd3d9483eb38 to your computer and use it in GitHub Desktop.
Save mwatts15/03de5258bd3d9483eb38 to your computer and use it in GitHub Desktop.
diff --git a/PyOpenWorm/neuron.py b/PyOpenWorm/neuron.py
index d693f32..32b52e8 100644
--- a/PyOpenWorm/neuron.py
+++ b/PyOpenWorm/neuron.py
@@ -82,7 +82,6 @@ class Connection(P.Property):
int
The number of connections matching the paramters given
"""
- # XXX: Turn this into a COUNT query
options = dict()
options["pre"] = """
?x c:pre_cell ?z .
@@ -163,16 +162,16 @@ class Neuron(Cell):
def __init__(self, name=False, **kwargs):
Cell.__init__(self,name=name,**kwargs)
# Get neurons connected to this neuron
- Neighbor(owner=self)
+ #Neighbor(owner=self)
# Get connections from this neuron
- Connection(owner=self)
+ #Connection(owner=self)
Neuron.DatatypeProperty("type",self, multiple=True)
Neuron.DatatypeProperty("receptor", self, multiple=True)
Neuron.DatatypeProperty("innexin", self, multiple=True)
Neuron.DatatypeProperty("neurotransmitter", self, multiple=True)
### Aliases ###
- self.get_neighbors = self.neighbor
+ #self.get_neighbors = self.neighbor
self.receptors = self.receptor
def GJ_degree(self):
from __future__ import print_function
import PyOpenWorm as P
P.connect("default.conf", do_logging=True)
print("Current Query:")
print(P.Neuron().graph_pattern(query=True))
print("Other Query:")
print(P.Neuron().graph_pattern0(query=True))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment