-
Notifications
You must be signed in to change notification settings - Fork 14
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
Update _components.py #129
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #129 +/- ##
==========================================
+ Coverage 72.75% 72.76% +0.01%
==========================================
Files 98 98
Lines 19645 19653 +8
Branches 1702 1706 +4
==========================================
+ Hits 14292 14301 +9
+ Misses 4789 4788 -1
Partials 564 564
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@BenGillen1998 thanks for pushing the changes! I fixed the tests throughout. @joyxyz1994 I tried to add some docs related to this for |
This reverts commit 9251f7e.
@BenGillen1998 thanks again for leading this effort! And thanks @yalinli2 for reconciling the tests and docstrings! On top of the changes you've made, I incorporated another kwarg |
@yalinli2 while addressing this issue, I found the inaccurate molecular weights could have significant impacts on calculation results of some units/streams. An example is the biogenic refinery units, which involve concentrated streams (e.g., biosolids, concentrated nutrient stream) and the |
@yalinli2 An update regarding the issue above. The error in An attempt to fix the wrong mass flow calculations is included in the recent commit to EXPOsan. Unfortunately, this means we might have to rerun all simulations if N recovery % is important. |
@joyxyz1994 thanks for looking into this! To make sure we understand this correctly, before any of these changes, NH3's When calculating the recovery, the unit script used a fixed 14, so it became 14*0.82 = 11.5 mg/L, even we recover all N. However, if In some of the EXPOsan modules, Was my interpretation correct? |
@yalinli2 That's correct! The reason why there's issue with |
@joyxyz1994 oh got it. I just checked some other modules, ah, do you know how different the recoveries would be? This is probably just for NH3, not even for NonNH3 because it didn't have a formula. correction: you are right, this line would cause problem: https://github.com/QSD-Group/EXPOsan-private/blob/main/exposan/new_generator/__init__.py#L328 |
@yalinli2 , for both biogenic refinery system B and reclaimer systems B&C, it underestimated the baseline N recovery % by about 10% (absolute). And you're right, I only found it to be an issue for |
Algorithms for estimating N recovery % have been updated for |
As mentioned in issue 100, I added a flag to the compile method. Now, components which have a measured_as property will not compile without switching the flag.