ml4ai / automates

AutoMATES: Automated Model Assembly from Text, Equations, and Software
https://ml4ai.github.io/automates
Other
24 stars 9 forks source link

Py AST to CAST 2 Pull Request #226

Closed titomeister closed 3 years ago

titomeister commented 3 years ago

Pull request for merging to master the work done on generating CAST from Python files. Some new tests added for new Python language constructs.

One thing that I know that could use more improvement is the Subscript visitor, as it is right now it's still very messy but functional.

There's also modifications to some other CAST files. Adding in some minor additions to get PyAST2CAST.py to work. I believe these changes are also in Daniel's branch, but I made the changes on my end as well to get them to work.

codecov[bot] commented 3 years ago

Codecov Report

Merging #226 (81316ad) into master (2ed47b6) will decrease coverage by 0.66%. The diff coverage is 64.45%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #226      +/-   ##
==========================================
- Coverage   68.40%   67.73%   -0.67%     
==========================================
  Files          78       81       +3     
  Lines       14523    15138     +615     
==========================================
+ Hits         9934    10254     +320     
- Misses       4589     4884     +295     
Impacted Files Coverage Δ
...analysis/CAST2GrFN/visitors/cast_to_air_visitor.py 58.11% <ø> (-23.08%) :arrow_down:
automates/program_analysis/CAST2GrFN/cast.py 66.27% <29.41%> (-26.78%) :arrow_down:
...lysis/CAST2GrFN/visitors/cast_to_agraph_visitor.py 92.60% <55.55%> (-0.92%) :arrow_down:
...ates/program_analysis/PyAST2CAST/py_ast_to_cast.py 63.37% <63.37%> (ø)
...rogram_analysis/CAST2GrFN/model/cast/source_ref.py 74.68% <74.68%> (ø)
.../program_analysis/CAST2GrFN/model/cast/ast_node.py 53.48% <90.90%> (+12.31%) :arrow_up:
.../program_analysis/CAST2GrFN/model/cast/__init__.py 100.00% <100.00%> (ø)
...ates/program_analysis/CAST2GrFN/model/cast/name.py 63.26% <0.00%> (-22.45%) :arrow_down:
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 2ed47b6...81316ad. Read the comment docs.