Skip to content

Commit

Permalink
Add GL support for ubuntu, fix shapely bug in synapse intersections
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanguy Fardet committed Jan 29, 2024
1 parent 6d57b25 commit 58046c5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
if: ${{ matrix.os == 'windows-latest' }}
run: |
conda install python cmake geos boost
pip install "cython<3"
pip install setuptools "cython<3"
pip install scipy numpy matplotlib pytest shapely pint PyOpenGL svg.path dxfgrabber networkx pyneuroml
pip install nngt
cd extra
Expand Down
2 changes: 1 addition & 1 deletion extra/install_debian.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

sudo apt install cmake g++ python3 python3-dev python3-pip libgeos++-dev doxygen python3-matplotlib python3-tk libboost-dev
sudo apt install cmake g++ python3 python3-dev python3-pip libgeos++-dev doxygen python3-matplotlib python3-tk libboost-dev freeglut3

# workaround for PyOpenGL
for lg in /usr/lib/x86_64-linux-gnu/libglut.so.3.*; do
Expand Down
2 changes: 1 addition & 1 deletion src/pymodule/dense/environment
2 changes: 1 addition & 1 deletion src/pymodule/dense/morphology/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def _get_synapses_intersection(axon_polygon, d_polygon, synapse_density, somas,
if num_synapses > 0:
s_soma = np.array(somas[i])
t_soma = np.array(somas[j])
pos = poly.centroid
pos = np.array(poly.centroid.coords)[0]
dist = np.linalg.norm(s_soma - pos) \
+ np.linalg.norm(t_soma - pos)

Expand Down
3 changes: 2 additions & 1 deletion tests/todo/test_retraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
# ~ shape = geom.Shape.disk(radius=800)
shape = geom.Shape.rectangle(1600, 1600)
r_params = {"height": 250., "width": 250.}
shape.random_obstacles(0.4, form="rectangle", params=r_params, heights=30., etching=20.)
shape = shape.random_obstacles(
0.4, form="rectangle", params=r_params, heights=30., etching=20.)


'''
Expand Down

0 comments on commit 58046c5

Please sign in to comment.