Skip to content

Fix error when setting deprecated nodata_vals option#624

Open
favyen2 wants to merge 1 commit intomasterfrom
favyen/20260424-fix-nodata-vals-cfg
Open

Fix error when setting deprecated nodata_vals option#624
favyen2 wants to merge 1 commit intomasterfrom
favyen/20260424-fix-nodata-vals-cfg

Conversation

@favyen2
Copy link
Copy Markdown
Collaborator

@favyen2 favyen2 commented Apr 24, 2026

The ValueError for self.nodata_vals + self.nodata_value being set is raised because after serialization / de-serialization, the model is validated again with both set. We have to set self.nodata_vals to None when we set self.nodata_value.

@favyen2 favyen2 requested a review from Farbum April 24, 2026 20:14
@favyen2
Copy link
Copy Markdown
Collaborator Author

favyen2 commented Apr 24, 2026

@Farbum this should fix errors when using the WorldCereal configuration in olmoearth_pretrain.

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