Skip to content

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

Open
erikvansebille wants to merge 3 commits into
Parcels-code:mainfrom
erikvansebille:support_some_fields_without_time_in_fieldset
Open

Fix combining Fields with and without time in one FieldSet#2741
erikvansebille wants to merge 3 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

(vector)field evaluation breaking for fields without time dimension

1 participant