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

Added loading option to load afferent and efferent synapses in python… #829

Merged
merged 1 commit into from
Sep 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions python/brayns/plugins/circuit_explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ def load_circuit(self, path, name='Circuit', density=100.0,
metaballs_section_samples=5, metaballs_grid_size=20, metaballs_threshold=1,
morphology_color_scheme=MORPHOLOGY_COLOR_SCHEME_NONE,
morphology_quality=GEOMETRY_QUALITY_HIGH, max_distance_to_soma=1e6,
cell_clipping=False):
cell_clipping=False, load_afferent_synapses=False, load_efferent_synapses=False,
synapse_radius=0.0):
"""
Load a circuit from a give Blue/Circuit configuration file

Expand Down Expand Up @@ -137,6 +138,9 @@ def load_circuit(self, path, name='Circuit', density=100.0,
segment loading (This is used by the growing neurons use-case)
:param bool cell_clipping: Only load cells that are in the clipped region defined at the
scene level
:param bool load_afferent_synapses: Load afferent synapses
:param bool load_efferent_synapses: Load efferent synapses
:param float synapse_radius: Synapse radius
:return: Result of the request submission
:rtype: str
"""
Expand Down Expand Up @@ -188,9 +192,9 @@ def load_circuit(self, path, name='Circuit', density=100.0,
props['100CellClipping'] = cell_clipping
props['101AreasOfInterest'] = 0

props['110SynapseRadius'] = 1.0
props['111LoadAfferentSynapses'] = False
props['112LoadEfferentSynapses'] = False
props['110SynapseRadius'] = synapse_radius
props['111LoadAfferentSynapses'] = load_afferent_synapses
props['112LoadEfferentSynapses'] = load_efferent_synapses

params = dict()
params['name'] = name
Expand Down