Skip to content

Remove .add_context limitation on numeric types#2678

Merged
VeckoTheGecko merged 2 commits into
Parcels-code:mainfrom
PeterWolfram:issue-2675-context-type
Jun 17, 2026
Merged

Remove .add_context limitation on numeric types#2678
VeckoTheGecko merged 2 commits into
Parcels-code:mainfrom
PeterWolfram:issue-2675-context-type

Conversation

@PeterWolfram

Copy link
Copy Markdown
Contributor

Description

Removed error raised if context type != float.
Added tests for context accessed from kernels.

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

@VeckoTheGecko VeckoTheGecko changed the title Context no longer limited to type float Remove .add_context limitation on numeric types Jun 17, 2026
@VeckoTheGecko VeckoTheGecko merged commit c2c31fa into Parcels-code:main Jun 17, 2026
17 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Parcels development Jun 17, 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.

Allow .add_context to support any type

2 participants