Skip to content

Hypothesis-driven testing for combining models into a fieldset - #2997

Merged
erikvansebille merged 5 commits into
Parcels-code:mainfrom
erikvansebille:hypothesis-tests-combining-models
Oct 22, 2026
Merged

erikvansebille merged 5 commits into
Parcels-code:mainfrom
erikvansebille:hypothesis-tests-combining-models

Conversation

@erikvansebille

Copy link
Copy Markdown
Member

Description

This PR adds a series of hypothesis-driven tests for combining different dimensionality models into one fields. Note that it was generated by an LLM (see below). This is my first hypothesis-driven test framework, so I'm keen for feedback!

Note also that it doesn't test/fix the issue of models that don't combine X and Y (so e.g an XZ grid), that will come in another PR

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):

Prompt: "Can you help me write a set of hypothesis tests that checks if we can combine models with 0D, 1D, 2D, 3D and/or 4D grids in one fieldset? See also #2054 and #2727

Prompt: "Can you help me write a set of hypothesis tests that checks if we can combine models with 0D, 1D, 2D, 3D and/or 4D grids in one fieldset? See also Parcels-code#2054 a…"

@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.

I reviewed this carefully. I think it looks good. Happy for this to be merged.

@erikvansebille
erikvansebille enabled auto-merge (squash) October 22, 2026 14:28
@erikvansebille
erikvansebille merged commit ce652a5 into Parcels-code:main Oct 22, 2026
20 of 21 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Parcels development Oct 22, 2026
@erikvansebille
erikvansebille deleted the hypothesis-tests-combining-models branch October 22, 2026 14:49
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.

Add testing for adding models of varying dinensionality to FieldSets

2 participants