Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomusy committed Feb 22, 2022
1 parent 2d51e3a commit 75c6e6b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ Development, 5 April 2018, [doi: 10.1242/dev.154856](http://dev.biologists.org/c
Front. Netw. Physiol. 1:802881, [doi: 10.3389/fnetp.2021.802881](https://www.frontiersin.org/articles/10.3389/fnetp.2021.802881/full).
- J. Klatzow, G. Dalmasso, N. Martínez-Abadías, J. Sharpe, V. Uhlmann,
*"µMatch: 3D shape correspondence for microscopy data"*, in preparation.
- G. Dalmasso *et al.*, *"4D reconstruction of developmental trajectories using spherical harmonics"*, bioRxiv 2021.12.16.472948: [](https://doi.org/10.1101/2021.12.16.472948).
- G. Dalmasso *et al.*, *"4D reconstruction of developmental trajectories using spherical harmonics"*,
bioRxiv 2021.12.16.472948: [doi](https://doi.org/10.1101/2021.12.16.472948).

**Have you found this software useful for your research? Star ✨ the project and cite it as:**

Expand Down
9 changes: 7 additions & 2 deletions tests/common/test_actors.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,16 +212,21 @@


###################################### averageSize
print('averageSize',sphere.averageSize())
assert 0.9 < sphere.averageSize() < 1.0
print('averageSize', Sphere().scale(10).pos(1,3,7).averageSize())
assert 9.9 < Sphere().scale(10).pos(1,3,7).averageSize() < 10.1

print('diagonalSize',sphere.diagonalSize())
assert 3.3 < sphere.diagonalSize() < 3.5

print('maxBoundSize',sphere.maxBoundSize())
assert 1.9 < sphere.maxBoundSize() < 2.1

print('centerOfMass',sphere.centerOfMass())
assert np.allclose(sphere.centerOfMass(), [0,0,0])

print('volume',sphere.volume())
assert 4.1 < sphere.volume() < 4.2

print('area',sphere.area())
assert 12.5 < sphere.area() < 12.6

Expand Down
2 changes: 1 addition & 1 deletion vedo/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
_version='2022.0.1.dev8'
_version='2022.1.0'

0 comments on commit 75c6e6b

Please sign in to comment.