Skip to content

Bringing SaltProc repository up to date#47

Merged
mehmeturkmen merged 10 commits into
arfc:masterfrom
andrewryh:develop
Aug 26, 2020
Merged

Bringing SaltProc repository up to date#47
mehmeturkmen merged 10 commits into
arfc:masterfrom
andrewryh:develop

Conversation

@andrewryh

Copy link
Copy Markdown
Contributor

This PR contains all changes I made in SaltProc during the last 5 months.

@pep8speaks

pep8speaks commented Aug 14, 2020

Copy link
Copy Markdown
Contributor

Hello @andrewryh! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-08-14 18:47:53 UTC

@mehmeturkmen mehmeturkmen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@andrewryh As far as I see, there is only one question mark in this PR. In "test_app.py", did you forget to add
procs['fuel']['entrainment_separator'].efficiency['Xe'] == 0.8
to line 44.

assert procs['fuel']['sparger'].efficiency['Xe'] == 0.6
assert procs['fuel']['entrainment_separator'].efficiency['H'] == 0.15
assert procs['fuel']['entrainment_separator'].efficiency['Kr'] == 0.87
assert procs['ctrlPois']['removal_tb_dy'].volume == 11.0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Did you forget to add "assert procs['fuel']['entrainment_separator'].efficiency['Xe'] == 0.8"? You removed "'Xe': 0.8}" from line 44?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Right now, in tests, Xe removal efficiency for the entrainment_separator is defined as equation (see saltproc/tests/processes.json).
So, it should be
assert procs['fuel']['entrainment_separator'].efficiency['Xe'] == (string, equation)

@mehmeturkmen
I would leave it as is, if you don't mind.

@andrewryh

Copy link
Copy Markdown
Contributor Author

@mehmeturkmen Any other concerns?
About the test: you feel free to add as many tests as you want.
I covered about 90% of the code with tests.

@mehmeturkmen mehmeturkmen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

So far, I have no concern. It seems your tests are working well. I am gonna rebase it.

@mehmeturkmen mehmeturkmen merged commit a098693 into arfc:master Aug 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants