Skip to content

Fix drifter depth test#308

Merged
j-atkins merged 3 commits intomainfrom
fix-drifter-test
Mar 12, 2026
Merged

Fix drifter depth test#308
j-atkins merged 3 commits intomainfrom
fix-drifter-test

Conversation

@j-atkins
Copy link
Collaborator

The forcing FieldSet in test_drifter_depths is supposed to have different values at the surface and depth to test that drifters are being deployed properly at different depths. However, the previous version used np.random.randint() as a multiplier to make new values at depth but could be the same as the surface if np.random.randint == 1. Hence, some but not all of the testing failed when #306 was merged.

This PR updates the test to give a consistently different field at depth, so that the FieldSet does not interfere with testing the actual drifter logic.

@j-atkins j-atkins merged commit dcf9ddb into main Mar 12, 2026
10 checks passed
@j-atkins j-atkins deleted the fix-drifter-test branch March 12, 2026 09:54
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.

1 participant