ml4ai / automates

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

GroMEt Multi File Pull Request #328

Closed titomeister closed 1 year ago

titomeister commented 1 year ago

This pull request adds a major feature to GroMEt generation: Multi file systems. Currently this has been checked with the CHIME Penn Full model. The multi file system is supported by using 'scripts/program_analsyis/multi_file_ingester.py'. Which, when used on a multi file system will create one single GroMEt containing information about all the Python files specified in the system.

A Jupyter notebook was added to demonstrate this execution.

In addition it makes some fixes to some CAST and annotatedCAST handlers. It also begins to add support for argument assignment.

One outstanding issue that still lies is handling dictionaries. Currently basic dictionaries are supported but the CHIME penn model does more complicated dictionaries that cause some of the GroMEt generation to look off.

codecov[bot] commented 1 year ago

Codecov Report

Merging #328 (f08f24d) into master (0816322) will decrease coverage by 0.04%. The diff coverage is 6.00%.

@@            Coverage Diff             @@
##           master     #328      +/-   ##
==========================================
- Coverage   34.56%   34.51%   -0.05%     
==========================================
  Files         114      114              
  Lines       22577    22623      +46     
==========================================
+ Hits         7803     7809       +6     
- Misses      14774    14814      +40     
Impacted Files Coverage Δ
...lysis/CAST2GrFN/ann_cast/cast_to_annotated_cast.py 77.14% <0.00%> (ø)
...am_analysis/CAST2GrFN/ann_cast/id_collapse_pass.py 76.47% <0.00%> (-0.92%) :arrow_down:
...omates/program_analysis/PyAST2CAST/modules_list.py 26.66% <0.00%> (-6.67%) :arrow_down:
...ates/program_analysis/PyAST2CAST/py_ast_to_cast.py 13.81% <2.43%> (-0.42%) :arrow_down:
...am_analysis/CAST2GrFN/ann_cast/ann_cast_helpers.py 86.30% <50.00%> (-0.31%) :arrow_down:
...nalysis/CAST2GrFN/ann_cast/container_scope_pass.py 87.70% <60.00%> (-0.25%) :arrow_down:
automates/model_analysis/graph_manipulation.py 70.75% <0.00%> (+0.55%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more