File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6868 pip install gitpython
6969 pip install requests
7070 python ${{ github.workspace }}/SofaDocGenerator/script/pipeline.py ${{ github.workspace }}/SofaDocGenerator/doc ${{ github.workspace }}/sofa/share/sofa/examples ${{ github.workspace }}/sofa/plugins
71-
71+
7272 python ${{ github.workspace }}/SofaDocGenerator/script/title_metadata.py ${{ github.workspace }}/SofaDocGenerator/doc
73+
74+ python ${{ github.workspace }}/SofaDocGenerator/script/scene_check.py ${{ github.workspace }}/SofaDocGenerator/doc/15_Using_SOFA/10_SceneChecking.md
7375
7476 echo "Starting the export of plugin lists"
7577 # Export plugin lists into the merged doc
Original file line number Diff line number Diff line change 1+ """
2+ Append the table composed of the list of SceneCheck to a file
3+ """
4+
5+ import sys
6+
7+ def main ():
8+
9+ if len (sys .argv ) < 2 :
10+ print ('Usage: scene_check.py <output_file>' )
11+ exit (1 )
12+
13+ import Sofa
14+ import SofaRuntime
15+
16+ SofaRuntime .importPlugin ("SceneChecking" )
17+
18+ table = "| Name | Description |\n "
19+ table += "| ---- | ----------- |\n "
20+ for scene_check in Sofa .Simulation .SceneCheckMainRegistry .getRegisteredSceneChecks ():
21+ table += f"| { scene_check .getName ()} | { scene_check .getDesc ()} |\n "
22+
23+ with open (sys .argv [1 ], 'a' , encoding = "utf-8" ) as output_file :
24+ output_file .write (table )
25+
26+ if __name__ == '__main__' :
27+ main ()
You can’t perform that action at this time.
0 commit comments