Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Helveg committed Nov 7, 2023
1 parent 988f9eb commit 8076ee6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
16 changes: 1 addition & 15 deletions bsb/connectivity/detailed/fiber_intersection.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
import numpy as np
import math
from ..strategy import ConnectionStrategy
from .shared import Intersectional
from ... import config
from ...config import types
from ...exceptions import *
from ...morphologies import Morphology, Branch
from ...plotting import plot_fiber_morphology
from ...reporting import report, warn
from ...reporting import warn
import abc

# Import rtree
from rtree import index
from rtree.index import Rtree


class FiberTransform(abc.ABC):
Expand Down Expand Up @@ -107,11 +101,6 @@ def connect(self):
# (2) Interpolate all branches recursively
self.interpolate_branches(fm.root_branches)

if c in self.to_plot:
fig = plot_fiber_morphology(
fm, fig=fig, offset=from_cell.position, show=False
)

# (3) Transform the fiber if present.
# It requires the from_cell position that will be
# used for example in QuiverTransform to get the orientation value
Expand All @@ -124,9 +113,6 @@ def connect(self):
if self.transformation._branch_cut_num > 0:
fiber_cut_num += 1

if c in self.to_plot:
fig = plot_fiber_morphology(fm, fig=fig, offset=from_cell.position)

# (4) Interpolate again
self.interpolate_branches(fm.root_branches)

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ profiling = "bsb._options:profiling"
test = [
"coverage~=7.3.0",
"bsb-hdf5==1.0.0b0",
"bsb-test==0.0.0b0",
"bsb-json==0.0.0b0"
]
dev = [
Expand Down

0 comments on commit 8076ee6

Please sign in to comment.