-
-
Notifications
You must be signed in to change notification settings - Fork 4
Tests for implementing AKM constructors #241
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
Changes from 14 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
2aff6e4
Add mwe_28.jl
ufechner7 7125763
Improve test
ufechner7 624a2c0
Remove AbstractKiteModel
ufechner7 a9e8dd0
Add field integrator
ufechner7 cb4a0d2
Add tests
ufechner7 1984d06
Update tests
ufechner7 dba5f5d
Add new constructors
ufechner7 fca348d
Add saw tests
ufechner7 93411dd
More tests
ufechner7 ed73b69
More tests
ufechner7 677217c
Add license
ufechner7 151f23b
Fix docu
ufechner7 845dc83
Proper tests
ufechner7 24dfc4a
Fix docu
ufechner7 b991acd
Address comment
ufechner7 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,6 @@ CurrentModule = KiteModels | |
| SimFloat | ||
| KVec3 | ||
| SVec3 | ||
| AbstractKiteModel | ||
| AKM | ||
| ``` | ||
|
|
||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # SPDX-FileCopyrightText: 2025 Uwe Fechner | ||
| # SPDX-License-Identifier: MIT | ||
|
|
||
| using KiteModels, KiteUtils, Test | ||
|
|
||
| set = load_settings("system.yaml") | ||
| kps3::KPS3 = KPS3(set) | ||
| kps4::KPS4 = KPS4(set) | ||
| set = load_settings("system_ram.yaml") | ||
| saw::SymbolicAWEModel = SymbolicAWEModel(set) | ||
|
|
||
| @testset "KPS3 constructor interface" begin | ||
| @test kps3 isa KiteUtils.AbstractKiteModel | ||
| @test kps3.set isa KiteUtils.Settings | ||
| @test isnothing(kps3.integrator) | ||
| @test kps3.am isa AtmosphericModel | ||
| @test kps3.iter isa Int64 | ||
| end | ||
| @testset "KPS4 constructor interface" begin | ||
| @test kps4 isa KiteUtils.AbstractKiteModel | ||
| @test kps4.set isa KiteUtils.Settings | ||
| @test isnothing(kps4.integrator) | ||
| @test kps4.am isa AtmosphericModel | ||
| @test kps4.iter isa Int64 | ||
| end | ||
| @testset "SymbolicAWEModel constructor interface" begin | ||
| @test saw isa KiteUtils.AbstractKiteModel | ||
| @test saw.set isa KiteUtils.Settings | ||
| @test isnothing(saw.integrator) | ||
| @test saw.am isa AtmosphericModel | ||
| @test saw.iter isa Int64 | ||
| end | ||
| nothing | ||
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.