-
Notifications
You must be signed in to change notification settings - Fork 9
Add mathematical correctness test suite #596
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
Merged
Merged
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
5a86364
Add new tests
FBumann a852b5a
test_invest_optional_not_built: Changed the cheap boiler from eta=1…
FBumann 2f17284
5 new tests:
FBumann 2fd8782
Split into multiple files
FBumann 6b62c1c
┌──────────────────────────┬──────────────┬────────────────────────…
FBumann b7e479e
⏺ All 44 tests pass. Every gap is now covered. Here's the final tally:
FBumann 6a107ef
Add more tests
FBumann 52196d5
Add more tests for previous_flow_rate
FBumann 279bced
Improve tests
FBumann 54372a3
Improve tests
FBumann d415ec1
Improve tests
FBumann 49ea37d
Key features now tested:
FBumann 09e176a
add test for effect maximum periodic
FBumann e283783
add test for effect maximum periodic Summary of new component-level …
FBumann 795b7ff
Add io test to solve
FBumann ed9240a
Add io test to solve
FBumann 80d716e
Add io test to solve
FBumann 6ebd351
Add io test to solve
FBumann ac8c22b
Ensure solution survives io
FBumann 4a57282
typo
FBumann 57c6fc9
Revert "typo"
FBumann ce318e9
Add plan file
FBumann ae6afb6
Add comprehensive test_math coverage for multi-period, scenarios, c…
FBumann efad9c9
⏺ Done. Here's a summary of what was changed:
FBumann 78ed286
Added TestClusteringExact class with 3 tests asserting exact per-ti…
FBumann b4942dd
More storage tests
FBumann 4b91731
Add multi-period tests
FBumann e89150b
Add clustering tests and fix issues with user set cluster weights
FBumann ba0f94f
Merge remote-tracking branch 'refs/remotes/origin/main' into feature/…
FBumann 24fcd58
Update CHANGELOG.md
FBumann f80885b
Mark old tests as stale
FBumann 68850eb
Update CHANGELOG.md
FBumann e5be97e
Mark tests as stale and move to new dir
FBumann fa3de4e
Move more tests to stale
FBumann 96124b2
Change fixtures to speed up tests
FBumann d71f85e
Moved files into stale
FBumann 3710435
Renamed folder
FBumann 79c4288
Reorganize test dir
FBumann 0eeb8ab
Reorganize test dir
FBumann 6387a29
Rename marker
FBumann f73c346
2. 08d-clustering-multiperiod.ipynb (cell 29): Removed stray <cell_…
FBumann f4601b8
Feature/test math+more (#600)
FBumann de1901a
fix docstrings
FBumann fde2da1
1. flixopt/comparison.py:62 — Added del merged[name] after the warn…
FBumann d93e707
1. Line 274 — Changed "CheapBoiler runs 4 hours, ExpensiveBackup ru…
FBumann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
Empty file.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
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
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
Empty file.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| """Superseded tests — replaced by tests/test_math/. | ||
|
|
||
| These tests have been replaced by more thorough, analytically verified tests | ||
| in tests/test_math/. They are kept temporarily for reference and will be | ||
| deleted once confidence in the new test suite is established. | ||
|
|
||
| All tests in this folder are skipped via pytestmark. | ||
| """ |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| """Model-building tests superseded by tests/test_math/. | ||
|
|
||
| These tests verified linopy model structure (variables, constraints, bounds). | ||
| They are implicitly covered by test_math: if solutions are mathematically correct, | ||
| the model building must be correct. | ||
| """ |
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.