diff --git a/bsb/morphologies/selector.py b/bsb/morphologies/selector.py index ceae8636..455bea8d 100644 --- a/bsb/morphologies/selector.py +++ b/bsb/morphologies/selector.py @@ -82,7 +82,7 @@ def pick(self, morphology): @config.node class NeuroMorphoSelector(NameSelector, classmap_entry="from_neuromorpho"): - _url = "https://neuromorpho.org/" + _url = "http://cng.gmu.edu:8080/neuroMorpho/" # "https://neuromorpho.org/" _meta = "api/neuron/select?q=neuron_name:" _files = "dableFiles/" diff --git a/docs/placement/placement-set.rst b/docs/placement/placement-set.rst index 9049e977..12203532 100644 --- a/docs/placement/placement-set.rst +++ b/docs/placement/placement-set.rst @@ -27,14 +27,20 @@ same :class:`~.storage.interfaces.PlacementSet`. If the placement set does not e # Alternatives to obtain the same placement set: ps = network.get_placement_set(network.cell_types.my_cell) ps = network.cell_types.my_cell.get_placement_set() - ps = network.storage.get_placement_set(network.cell_types.my_cell) + print (ps.tag) # Name of the placement set Identifiers =========== Cells have no global identifiers, instead you use the indices of their data, i.e. the n-th position belongs to cell n, and so will the n-th rotation. +To easily retrieve the cells' IDs make use of the method :meth:`~.storage.interfaces.PlacementSet.load_ids`. + +.. code-block:: python + + list_of_ids = ps.load_ids() + Positions ========= @@ -44,21 +50,23 @@ The positions of the cells can be retrieved using the .. code-block:: python - for n, position in enumerate(ps.positions): + for n, position in enumerate(ps.load_positions()): print("I am", ps.tag, "number", n) print("My position is", position) Morphologies ============ -The positions of the cells can be retrieved using the +The morphology of the cells can be retrieved using the :meth:`~.storage.interfaces.PlacementSet.load_morphologies` method. .. code-block:: python for n, (pos, morpho) in enumerate(zip(ps.load_positions(), ps.load_morphologies())): print("I am", ps.tag, "number", n) - print("My position is", position) + print("My position is", pos) + print("My morphology is", morpho) + .. warning::