Skip to content

Speeding up test_mitgcm#2690

Merged
erikvansebille merged 1 commit into
Parcels-code:mainfrom
erikvansebille:speedup_unit_tests
Jun 23, 2026
Merged

Speeding up test_mitgcm#2690
erikvansebille merged 1 commit into
Parcels-code:mainfrom
erikvansebille:speedup_unit_tests

Conversation

@erikvansebille

Copy link
Copy Markdown
Member

This PR addresses #2689, by shortening the runtime of test_mitgcm(). The unit test duration drops from >30 seconds to ~3 seconds; and the total test suite from 89s to 65s.

Description

Note that I also had to redo the test_mitgcm in v3; and that I initially didn't get equivalent results because I forgot that the pset.lat of v4 should be compared to the pset.lat_nextloop of v3!

Checklist

AI Disclosure

  • This PR contains AI-generated content.
    • I have tested any AI-generated content in my PR.
    • I take responsibility for any AI-generated content in my PR.
    • Describe how you used it (e.g., by pasting your prompt):

From >30 seconds to ~3 seconds

@VeckoTheGecko VeckoTheGecko left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me! Great to reduce this

@erikvansebille erikvansebille merged commit bf121a4 into Parcels-code:main Jun 23, 2026
17 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Parcels development Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Speed up some of the slowest pytests

2 participants