pipeline.txt 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. # TEST PIPELINE ##############################################################
  2. - Internal use only
  3. ##############################################################################
  4. # INSTALL ####################################################################
  5. export VEDODIR=$HOME/Projects/vedo
  6. export VEDOLOGFILE=$VEDODIR/output_vedo_test.txt
  7. cd $VEDODIR
  8. pip install -q -e .
  9. pip install treelib
  10. pip install colorcet
  11. pip install scikit-image
  12. pip install scikit-learn
  13. pip install nevergrad -U
  14. pip install pyefd -U
  15. pip install iminuit -U
  16. pip install meshio -U
  17. pip install morphomatics -U
  18. pip install pygeodesic -U
  19. pip install pygmsh -U
  20. pip install pymeshlab -U
  21. pip install pymadcad -U
  22. pip install pyshtools -U
  23. pip install rtree
  24. pip install trimesh -U
  25. pip install -q trame==2.5.2
  26. pip install qtpy
  27. pip install magic-class -U
  28. pip install tetgenpy -U
  29. pip install gustaf -U
  30. pip install fast-simplification -U
  31. #pip install pyacvd -U
  32. #pip install pymeshfix -U
  33. # ENABLE/DISABLE DRY RUN ###########################################################
  34. sed -i "s/dry_run_mode = 0/dry_run_mode = 2/g" $VEDODIR/vedo/settings.py #->DISABLE
  35. sed -i "s/dry_run_mode = 2/dry_run_mode = 0/g" $VEDODIR/vedo/settings.py #->ENABLE
  36. ####################################################################################
  37. pytest tests
  38. cd $VEDODIR/tests/common && ./run_all.sh
  39. cd $VEDODIR/tests/issues && ./run_all.sh
  40. cd $VEDODIR/tests/snippets && ./run_all.sh
  41. # EXAMPLES ##########################################################################
  42. cd $VEDODIR/examples && time ./run_all.sh 2>&1 | tee $VEDOLOGFILE && alert "scan done."
  43. grep -aA 1 "Error" $VEDOLOGFILE
  44. grep -aA 3 "Trace" $VEDOLOGFILE
  45. grep -aA 3 "ailure" $VEDOLOGFILE
  46. grep -aA 3 "invalid" $VEDOLOGFILE
  47. code $VEDOLOGFILE #### inspect logfile
  48. # (Try normal run too with visualization to make sure all is ok)
  49. # TUTORIALS ##################################################################
  50. cd ~/Projects/server/vedo-embo-course/scripts && ./run_all.sh
  51. cd ~/Projects/server/vedo-bias-course/scripts && ./run_all.sh
  52. cd ~/Projects/server/vedo-epug-tutorial/scripts && ./run_all.sh
  53. # TRIMESH #####################################################################
  54. cd $VEDODIR/examples/other/trimesh && ./run_all.sh
  55. # DOLFIN #####################################################################
  56. # conda create -n fenics -c conda-forge fenics
  57. # conda activate fenics
  58. # conda install conda-forge::mshr
  59. cd $VEDODIR
  60. conda activate fenics
  61. pip install -qe .
  62. cd $VEDODIR/examples/other/dolfin && ./run_all.sh
  63. conda deactivate
  64. # OTHERS #####################################################################
  65. cd $VEDODIR
  66. python ~/Dropbox/documents/Medical/RESONANCIA.py
  67. vedo https://vedo.embl.es/examples/data/panther.stl.gz
  68. vedo https://vedo.embl.es/examples/geo_scene.npz
  69. vedo --convert data/290.vtk --to ply && vedo data/290.ply
  70. # NOTEBOOKS ###################################################################
  71. cd $VEDODIR/examples/notebooks/
  72. jupyter notebook > /dev/null 2>&1
  73. # test colab
  74. https://colab.research.google.com/drive/
  75. ##########################
  76. # Check on OSX and Windows
  77. # VEDO PROJECTS ###############################################################
  78. cd $VEDODIR
  79. pip install .
  80. cd ~/Projects/server/trackviewer
  81. ./main_test.py
  82. ################
  83. cd ~/Projects/clonal_analysis/clone_viewer3
  84. ./clone_viewer_gio3d.py
  85. ################
  86. cd ~/Projects/server/rio_organoid
  87. python main4.py
  88. python piv_read_fw2_C3.py
  89. ################
  90. cd ~/Projects/server/cell_density
  91. analyse_density.py test_image.png test_image_gfp.png
  92. edu_histogram.py test_image.png
  93. ################
  94. cd ~/Projects/new_yalla/limb_opti_here
  95. python result_viz3.py
  96. ################
  97. cd ~/Projects/server/welsh_embryo_stager
  98. python stager.py pics/E14.5_L3-03_HL2.5X.jpg
  99. ################
  100. cd ~/Projects/oocytes
  101. python step5.py
  102. ################
  103. cd ~/Projects/umap_viewer3d
  104. python main6.py
  105. ################
  106. cd ~/Projects/napari-vedo-bridge
  107. # conda create -y -n napari-env -c conda-forge python=3.9
  108. # conda activate napari-env
  109. # python -m pip install "napari[all]"
  110. conda activate napari-env
  111. cd $VEDODIR && pip install -q . && cd -
  112. pip install -e .
  113. python $VEDODIR/examples/other/napari1.py # then open plugins ...
  114. conda deactivate
  115. ################
  116. cd ~/Projects/server/brainrender/examples
  117. python cell_density.py
  118. python streamlines.py
  119. python volumetric_data.py
  120. ################
  121. cd ~/Projects/clonal_analysis
  122. python -m analysis_plots2d
  123. python tc_morph11_2d.py
  124. ################
  125. cd ~/Projects/server/gustaf
  126. git pull
  127. pip install -e .
  128. cd examples
  129. python run_all_examples.py
  130. ################
  131. cd ~/Projects/server/splinepy
  132. git pull
  133. pip install -e .
  134. cd examples
  135. python run_all_examples.py
  136. ################
  137. cd ~/Projects/server/tetgenpy/examples
  138. python plc_to_tets.py
  139. ################
  140. cd ~/Projects/4d-gene-reconstruction/useful_scripts
  141. python plc_to_tets.py
  142. ################
  143. cd ~/Projects/abm_playground/
  144. python cell_sim.py
  145. rm $VEDOLOGFILE
  146. # DOCUMENTATION ###############################################################
  147. # mount_staging
  148. # pip install pdoc
  149. cd $VEDODIR
  150. pip install -qe .
  151. cd $VEDODIR/docs/pdoc
  152. ./build_html.py
  153. # check web page examples
  154. cd $VEDODIR
  155. code docs/examples_db.js
  156. cp docs/examples_db.js www/examples_db.js
  157. code www/index.html
  158. # RELEASE #####################################################################
  159. cd $VEDODIR
  160. # check version and status
  161. code vedo/version.py
  162. git status
  163. git commit -am 'release'
  164. git push
  165. # (optionally) python -m pip install -U packaging
  166. # upload to pypi (add in ~/.pypirc):
  167. # [pypi]
  168. # username = __token__
  169. # password = your-pypi-token
  170. rm -rf dist/
  171. python -m build
  172. python -m twine upload dist/*
  173. # View at:
  174. # https://pypi.org/project/vedo/
  175. # make github release
  176. cd $VEDODIR
  177. code CHANGELOG.md
  178. code vedo/version.py # edit to add +dev0
  179. https://repology.org/project/vedo/badges
  180. # SITES ######################################################################
  181. https://vedo.embl.es/
  182. https://vedo.embl.es/docs
  183. https://vedo.embl.es/fonts
  184. https://github.com/marcomusy/vedo
  185. https://forum.image.sc/search?q=vedo%20order%3Alatest