ml4ai / automates

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

Claytonm/gromet query #329

Closed cl4yton closed 1 year ago

cl4yton commented 1 year ago

Adds a cheap-n-cheerful simple query to grab all named output ports, which correspond to named variables that get set to values (note, this does not include instances of named input ports, which would be for named arguments to functions).

The function collect_named_output_ports does this, and is defined in a new file <automates_root>/automates/gromet/query/query.py.

The expectation is that this functionality should be subsumed by the rust gromet graph query interface.

codecov[bot] commented 1 year ago

Codecov Report

Merging #329 (619ee8d) into master (b969f9d) will increase coverage by 0.00%. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #329   +/-   ##
=======================================
  Coverage   34.50%   34.51%           
=======================================
  Files         114      114           
  Lines       22623    22623           
=======================================
+ Hits         7807     7809    +2     
+ Misses      14816    14814    -2     
Impacted Files Coverage Δ
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