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

Tests using physical simulations #247

Merged
merged 33 commits into from
Nov 4, 2024
Merged

Tests using physical simulations #247

merged 33 commits into from
Nov 4, 2024

Conversation

nichollsh
Copy link
Contributor

@nichollsh nichollsh commented Nov 2, 2024

We currently have tests using the Dummy simulations. This checks that the module coupling works okay and the dummy modules are working.

It is absolutely necessary to add tests for the physical modules. This PR introduces some initial tests for these, although they will surely be subject to change in the future. It runs PROTEUS with JANUS+Aragog+MORS+CALLIOPE for a few model steps. It does not run until convergence as this would take too long. Workflow runtime is about 5 minutes. Closes #237.

This increases the coverage from 45% to 59%. We could get this to ~65% if we included an AGNI test, but this would probably be quite slow.

Implementing these physical tests required adding installation steps for SOCRATES and Aragog to the CI workflow. These use caching to speed things up.

Includes a few bug fixes:

  • Do not plot modern spectrum on Dummy stellar flux plots
  • Do not try to copy the modern spectrum when using Dummy stellar model

GitHub records that a lot of files were changed, but most of these are changes to the test data. Apologies for the many random commits - it took some work to get the CI workflow working properly. The key thing with this is the order in which the modules are checked-out.

@nichollsh nichollsh marked this pull request as ready for review November 3, 2024 11:23
Copy link
Member

@lsoucasse lsoucasse left a comment

Choose a reason for hiding this comment

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

This is really great! Thanks @nichollsh.

We should consider to extend this test to a resume simulation for a later stage of planet evolution (again, for a couple of iterations). It will not increase the coverage but check code behaviour in another range of parameters.

@nichollsh
Copy link
Contributor Author

Yes I definitely agree. I think particularly once we have also looked into #193.

@nichollsh
Copy link
Contributor Author

Thanks @lsoucasse!

@nichollsh nichollsh merged commit daf927a into main Nov 4, 2024
5 checks passed
@nichollsh nichollsh deleted the hn/physical branch November 4, 2024 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set up a physical integration test
2 participants