Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORRECTED PA/MA Pipeline Update and GrFN2WD Translation #344

Merged
merged 152 commits into from
Sep 5, 2019
Merged

Conversation

pauldhein
Copy link

This new branch includes all of the material from #256 that is needed to support the SIR models and collaborative demo with GTRI and Galois. The reason for this new branch is to avoid merge errors with master. This PR should solve the problems found in previous PRs.

Paul Hein and others added 30 commits June 7, 2019 16:32
@pauldhein pauldhein self-assigned this Sep 3, 2019
@pauldhein pauldhein added this to In progress in AutoMATES via automation Sep 3, 2019
AutoMATES automation moved this from In progress to Reviewer approved Sep 3, 2019
Copy link
Contributor

@cl4yton cl4yton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see some checks are failing, but but besides that things look good to me.
If you need to merge before all tests are passing, that's fine, your call.

Copy link
Collaborator

@adarshp adarshp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pauldhein I've left a few comments on the PR, please take a look at them when you get a chance.

self.inputs = [
n
for n, d in self.in_degree()
if d == 0 and self.nodes[n]["type"] == "variable"
]
self.output_node = self.outputs[-1]
# self.output_node = self.outputs[-1]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we get rid of this commented-out line?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

)

# {"file_name": f"{stem}.py"}, # HACK
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this commented-out line something we can remove as well?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed.

@@ -0,0 +1,2582 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a file that can be automatically generated? If so, we should remove it.

@@ -0,0 +1,259 @@
import math
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly for this file - can it be automatically generated? If so, let's remove it.

@@ -0,0 +1,160 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question (automatically generated?)

Returns:
Element Tree (ET) Object: An object of generated rectified
XML.
"""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The extra indentation here in the docstrings makes sphinx-apidoc complain. This was fixed in #333, but the fix doesn't seem to have propagated to this branch. Perhaps you can try doing git cherry-pick a22e0d506d2bb51b20c027e1a7748eece9ffbf12?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used the cherry-pick method and was indeed able to revert the commenting style to the correct solution. @adarshp please let me know if I missed one of the docstrings in the new version

delphi/translators/for2py/genCode.py Show resolved Hide resolved
<file>
</file>
"""
This function handles cleaning up the XML elementss
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, docstring indentations.

delphi/translators/for2py/types_ext.py Show resolved Hide resolved
CAG.draw('SIR-Gillespie_ms--CAG.pdf', prog='dot')


# def test_petasce_torch_execution():
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we delete this commented-out code?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My mistake, I still want this test in the future so I'll use the pytest skip fixture as opposed to commenting out the code.

AutoMATES automation moved this from Reviewer approved to Needs review Sep 3, 2019
@adarshp
Copy link
Collaborator

adarshp commented Sep 3, 2019

Also, @pauldhein if you get around to merging before me, please make sure to squash the commits before merging!

@pratikbhd pratikbhd mentioned this pull request Sep 3, 2019
Paul Hein and others added 2 commits September 3, 2019 14:50
…ors (#345)

Per @adarshp: when running test suite. Basically, pytest was picking up
SIR-simple_lambdas.py in delphi/translators/GrFN2WiringDiagram, which
was interfering with test_sir_simple_creation in
tests/aske/test_GrFN.py.
@codecov
Copy link

codecov bot commented Sep 5, 2019

Codecov Report

Merging #344 into master will increase coverage by 1.1%.
The diff coverage is 79.37%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #344     +/-   ##
=========================================
+ Coverage   67.96%   69.07%   +1.1%     
=========================================
  Files          59       60      +1     
  Lines        8342     8990    +648     
=========================================
+ Hits         5670     6210    +540     
- Misses       2672     2780    +108
Impacted Files Coverage Δ
delphi/translators/for2py/pyTranslate.py 79.25% <ø> (+0.4%) ⬆️
delphi/translators/for2py/types_ext.py 77.02% <ø> (-1.36%) ⬇️
delphi/translators/for2py/genPGM.py 83.58% <ø> (+8.14%) ⬆️
delphi/apps/CodeExplorer/app.py 47.88% <0%> (+3.15%) ⬆️
delphi/GrFN/utils.py 69.23% <100%> (+15.89%) ⬆️
delphi/translators/for2py/syntax.py 99% <100%> (-0.05%) ⬇️
delphi/translators/for2py/rectify.py 80.68% <100%> (+0.1%) ⬆️
delphi/translators/for2py/preprocessor.py 77.11% <38.88%> (-0.4%) ⬇️
delphi/translators/for2py/f2grfn.py 48.87% <52.94%> (-1.13%) ⬇️
delphi/translators/GrFN2WiringDiagram/translate.py 76.13% <76.13%> (ø)
... and 8 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 1e813eb...054bffc. Read the comment docs.

Paul Hein and others added 5 commits September 5, 2019 12:24
* Fixed unexpected indentations within the docstrings for f2grfn.py

* Fixed additonal docstring issue for f2grfn.py

* Fixed docstring issues for format.py

* Fixed docstring issues for get_comments.py

* Fixed docstring issues for preprocessor.py

* Fixed docstring issues for pyTranslate.py

* Fixed docstring issues for static_save.py

* Fixed docstring issues for strings.py

* Fixed docstring issues for syntax.py

* Fixed docstring issues for translate.py

* Partially fixed docstring issues for type_ext.py

* Fixed all docstring issues for rectify.py

* Fixed all docstring issues
@pauldhein
Copy link
Author

@cl4yton and @adarshp, now that the translation pipeline runs end-to-end shall we remove all auto-generated GrFN JSON and lambdas files? Adarsh has marked most of them for removal, but I think we mine as well remove all of the ones still in the repo.

AutoMATES automation moved this from Needs review to Reviewer approved Sep 5, 2019
@pauldhein pauldhein merged commit a879308 into master Sep 5, 2019
AutoMATES automation moved this from Reviewer approved to Done Sep 5, 2019
@pauldhein pauldhein deleted the SIR-update branch September 5, 2019 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix enhancement New feature or request
Projects
AutoMATES
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

5 participants