Repository navigation
Fix numeric System.results output without units - #264
Merged
yoelcortes merged 1 commit intoNov 20, 2026
Merged
yoelcortes merged 1 commit into
yoelcortes merged 1 commit into
Conversation
Use cost and revenue flow getters in the numeric results path to avoid calls to removed utility-flow methods.
yoelcortes
approved these changes
Nov 20, 2026
yoelcortes
left a comment
Member
There was a problem hiding this comment.
Looks good, thanks for the update!
Member
|
The other tests (which are unrelated) will be fixed with an upcoming PR. |
yoelcortes
marked this pull request as ready for review
November 20, 2026 06:10
yoelcortes
merged commit Nov 20, 2026
5bd5d11
into
BioSTEAMDevelopmentGroup:master
0 of 2 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
System.results(with_units=False)raisesAttributeErrorbecause it callsget_inlet_utility_flows()andget_outlet_utility_flows(), which are no longer defined. Useget_inlet_cost_flows()andget_outlet_revenue_flows(), matching the branch that includes units.The regression tests compare the numeric Series with the DataFrame's numeric column, both with and without custom stream fees and credits. They also check inlet costs and negative outlet credits. The method docstring now describes both return formats.
Validation on Windows / Python 3.12.12:
python -m pytest tests/test_report.py -q -o addopts= --basetemp=<external-temp-directory>: 9 passed.--cov=biosteamalso pass; both corrected calls are covered.git diff --checkpasses.docs/conf.py: the installedsphinx_autodoc_typehintshas noformat_annotationattribute.biosteam testspasses 31 cases before aGibbsEquilibriumReactoroutput-format doctest fails. A separate unit-test run passes 6 cases beforetest_jacketed_bubble_columnfails on reactor volume. Both failures reproduce with the original_system.py; complete-suite validation remains pending.Following the PR template, this is a draft while the complete test requirement is pending.