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

254 unit tests for hotregion #482

Merged
merged 7 commits into from
Dec 6, 2024
Merged

Conversation

Basdorsman
Copy link
Contributor

Here I added basic run, getter and setter tests for all functions in hotregion.py

However, not every reasonable model configuration has been tested. For example, I am not testing ceding and omitting hot spots and numerical atmospheres yet. Best would be to also add some asserts to ensure that the correct values come out. Still, the tests we have so far can be checked and merged in my opinion.

Here I also deprecate the is_secondary keyword argument in the HotRegion class. So if this issue is closed that other issue can also be closed.

@Basdorsman Basdorsman linked an issue Dec 6, 2024 that may be closed by this pull request
@Basdorsman Basdorsman self-assigned this Dec 6, 2024
@Basdorsman
Copy link
Contributor Author

Apparently in Python 3.8 and 3.9 it fails due to a | used as "or" in isinstance()...

Copy link
Member

@DevarshiChoudhury DevarshiChoudhury left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add commit changing examples where is_secondary is used

Copy link
Member

@DevarshiChoudhury DevarshiChoudhury left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@DevarshiChoudhury DevarshiChoudhury merged commit 87ae76a into main Dec 6, 2024
4 checks passed
@DevarshiChoudhury DevarshiChoudhury deleted the 254-unit-tests-for-hotregion branch December 6, 2024 14:08
@DevarshiChoudhury DevarshiChoudhury added the enhancement New feature or request label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unit tests for HotRegion and HotRegions
2 participants