Skip to content

Fix combining Fields with and without time in one FieldSet#2741

Merged
erikvansebille merged 5 commits into
Parcels-code:mainfrom
erikvansebille:support_some_fields_without_time_in_fieldset
Jul 22, 2026
Merged

Fix combining Fields with and without time in one FieldSet#2741
erikvansebille merged 5 commits into
Parcels-code:mainfrom
erikvansebille:support_some_fields_without_time_in_fieldset

Conversation

@erikvansebille

@erikvansebille erikvansebille commented Jul 10, 2026

Copy link
Copy Markdown
Member

This PR fixes an issue where Fields without time can't be evaluated is other Fields in the Model (Fieldset) have time (and thus the time interval is not None)

Description

Checklist

AI Disclosure

None

Comment on lines +112 to +114
if "time" not in self.model.data[self.name].dims:
# This field does not have a time-dimension
return None

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is the key change that fixes #2735

@erikvansebille
erikvansebille enabled auto-merge (squash) July 22, 2026 13:08
@erikvansebille
erikvansebille merged commit fcffbbb into Parcels-code:main Jul 22, 2026
30 of 31 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Parcels development Jul 22, 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.

(vector)field evaluation breaking for fields without time dimension

2 participants