Skip to content

Commit 15af317

Browse files
authored
Merge pull request #78 from NeuroML/experimental
Fix for showing inhibitory connections as circle on graphs
2 parents cb0c5c4 + 31c5c0d commit 15af317

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

examples/LEMS_SimExample3.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!--
44
5-
This LEMS file has been automatically generated using PyNeuroML v1.3.14 (libNeuroML v0.6.6)
5+
This LEMS file has been automatically generated using PyNeuroML v1.3.17 (libNeuroML v0.6.6)
66
77
-->
88

examples/LEMS_SimExample4.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!--
44
5-
This LEMS file has been automatically generated using PyNeuroML v1.3.14 (libNeuroML v0.6.6)
5+
This LEMS file has been automatically generated using PyNeuroML v1.3.17 (libNeuroML v0.6.6)
66
77
-->
88

neuromllite/GraphVizHandler.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ def handle_population(
508508
self.pop_nml_component_objs[population_id] = component_obj
509509

510510
if not self.include_input_pops and is_spiking_input_nml_cell(component_obj):
511-
print("Ignoring %s as it's a spiking input population")
511+
print_v("Ignoring %s as it's a spiking input population")
512512
return
513513

514514
self.pop_sizes[population_id] = size
@@ -545,7 +545,7 @@ def handle_population(
545545
else:
546546
fcolor = "#ffffff"
547547

548-
print('Color %s -> %s -> %s'%(properties['color'], rgb, color))
548+
print_v('Color %s -> %s -> %s'%(properties['color'], rgb, color))
549549

550550
if properties and "type" in properties:
551551
self.pop_types[population_id] = properties["type"]
@@ -634,18 +634,19 @@ def handle_projection(
634634
self.proj_post_pops[projName] = postPop
635635
self.proj_types[projName] = type
636636

637+
638+
if type == "continuousProjection":
639+
shape = self.CONT_CONN_ARROW_SHAPE
640+
line = "solid"
641+
637642
if prePop in self.pop_types:
638643
if "I" in self.pop_types[prePop]:
639644
shape = self.INH_CONN_ARROW_SHAPE
640645

641646
if type == "electricalProjection":
642647
shape = self.GAP_CONN_ARROW_SHAPE
643648
line = "dashed"
644-
645-
if type == "continuousProjection":
646-
shape = self.CONT_CONN_ARROW_SHAPE
647-
line = "solid"
648-
649+
649650
if synapse_obj:
650651
self.proj_syn_objs[projName] = synapse_obj
651652
erev = self.get_reversal_potential_mV(synapse_obj)

0 commit comments

Comments
 (0)