Skip to content

Commit

Permalink
check if afferent_section_pos is present
Browse files Browse the repository at this point in the history
  • Loading branch information
anilbey committed Apr 26, 2024
1 parent f0e2d64 commit 8698cf4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bluecellulab/circuit/synapse_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ def properties_to_bluepy(props: list[SynapseProperty | str]) -> list[BLPSynapse
# bluepy does not have AFFERENT_SECTION_POS atm.
# jira_url/project/issues/browse/NSETM-2313
bluepy_recognised_props = props.copy()
bluepy_recognised_props.remove(SynapseProperty.AFFERENT_SECTION_POS)
if SynapseProperty.AFFERENT_SECTION_POS in bluepy_recognised_props:
bluepy_recognised_props.remove(SynapseProperty.AFFERENT_SECTION_POS)
return [
prop.to_bluepy()
if isinstance(prop, SynapseProperty)
Expand Down

0 comments on commit 8698cf4

Please sign in to comment.