owmeta icon indicating copy to clipboard operation
owmeta copied to clipboard

Fix muscle innervation test in the README doc tests

Open slarson opened this issue 10 years ago • 1 comments

This test was taken out of the readme to get a build to work, but needs to be put back in

See what neurons innervate a muscle::

>>> mdr21 = P.Muscle('MDR21')
>>> innervates_mdr21 = mdr21.innervatedBy()
>>> len(innervates_mdr21)
4

slarson avatar Dec 06 '15 17:12 slarson

To do this as written, requires to

  1. add muscle.neurons (aliased to innervatedBy) relationships in addition to the existing Connections with muscle termination, or
  2. write a property that does the query on Connections. This is essentially Neighbor in PyOpenWorm.neuron. Could even move neighbor up into cell.

mwatts15 avatar Feb 01 '17 03:02 mwatts15