Skip to content

Conversation

@SamFerracin
Copy link
Collaborator

This PR fixes two issues with the decoders.

The first fix ensures that the NLV3 creates results of the correct type. Previous to this change, some dictionaries with keys of type int were actually returned as dictionaries with keys of type str.

The second fix ensures that the Executor can support more than just "v0_1" models


try:
decoder = AVAILABLE_DECODERS[schema_version]
decoder, model = AVAILABLE_DECODERS[schema_version]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@yaelbh I considered a few different approaches, but eventually converged on what you suggested from the start

metadata=datum["metadata"],
rates=datum.rates.to_numpy(),
rates_std=datum.rates_std.to_numpy(),
metadata=datum.metadata,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
metadata=datum.metadata,
metadata=datum.metadata.model_dump(),

@yaelbh
Copy link
Collaborator

yaelbh commented Dec 21, 2025

Closing because this PR was merged into #2505.
@SamFerracin When you review #2505 note that it contains some fixes to this PR.

@yaelbh yaelbh closed this Dec 21, 2025
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.

2 participants