Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ilkilic committed May 24, 2024
1 parent f738680 commit 45ac1d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_synapse/test_synapse_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,11 @@ def test_determine_synapse_location(self):
# set afferent_section_pos
self.syn_description[SynapseProperty.AFFERENT_SECTION_POS] = 1.2
res = SynapseFactory.determine_synapse_location(self.syn_description, self.cell)
assert res.location == 1.2
assert res.location == 0.9999999
assert res.section.L == pytest.approx(9.530376893488256)
self.syn_description[SynapseProperty.AFFERENT_SECTION_POS] = 0
res = SynapseFactory.determine_synapse_location(self.syn_description, self.cell)
assert res.location == 0.0000001

def test_synlocation_to_segx(self):
ipt = 13
Expand Down

0 comments on commit 45ac1d9

Please sign in to comment.