ml4ai / automates

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

GroMEt record initial implementation PR #323

Closed titomeister closed 1 year ago

titomeister commented 1 year ago

(NOTE: The majority of the files changed in this PR are CAST files that are auto-generated by swagger) This PR implements the addition of an initial Record implementation in GroMEt. The Record is a general definition for Python Classes, C structs, and other language's representation of Objects.

For now the Record implementation has only been tested on Python.

NOTE: The id system for variables and functions related to classes is currently wrong, but it isn't used by the GroMEt generation, its main use is for GrFN, so it won't affect this initial RecordDef generation. It will need to be fixed soon, though.

codecov[bot] commented 1 year ago

Codecov Report

Merging #323 (4b17253) into master (c2f0443) will decrease coverage by 1.89%. The diff coverage is 47.01%.

@@            Coverage Diff             @@
##           master     #323      +/-   ##
==========================================
- Coverage   36.25%   34.36%   -1.90%     
==========================================
  Files         112      113       +1     
  Lines       22485    22577      +92     
==========================================
- Hits         8153     7759     -394     
- Misses      14332    14818     +486     
Impacted Files Coverage Δ
automates/program_analysis/CAST2GrFN/cast.py 53.17% <ø> (ø)
...rogram_analysis/CAST2GrFN/model/cast/assignment.py 68.96% <ø> (ø)
.../program_analysis/CAST2GrFN/model/cast/ast_node.py 76.74% <ø> (ø)
...program_analysis/CAST2GrFN/model/cast/attribute.py 44.82% <ø> (-24.14%) :arrow_down:
...program_analysis/CAST2GrFN/model/cast/binary_op.py 73.13% <ø> (ø)
...m_analysis/CAST2GrFN/model/cast/binary_operator.py 62.50% <ø> (ø)
...s/program_analysis/CAST2GrFN/model/cast/boolean.py 55.10% <ø> (-4.09%) :arrow_down:
...ates/program_analysis/CAST2GrFN/model/cast/call.py 68.96% <ø> (ø)
...ates/program_analysis/CAST2GrFN/model/cast/dict.py 44.82% <ø> (-24.14%) :arrow_down:
...ates/program_analysis/CAST2GrFN/model/cast/expr.py 44.89% <ø> (-18.37%) :arrow_down:
... and 66 more

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