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

Bringing SaltProc repository up to date #47

Merged
merged 10 commits into from
Aug 26, 2020
Merged

Conversation

andrewryh
Copy link
Contributor

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

@pep8speaks
Copy link
Contributor

pep8speaks commented Aug 14, 2020

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

Copy link
Contributor

@mehmeturkmen mehmeturkmen left a comment

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['Kr'] == 0.6
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
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
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
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.

Copy link
Contributor

@mehmeturkmen mehmeturkmen left a comment

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