Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ntuple] Allow modifying model fields #16713

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hahnjo
Copy link
Member

@hahnjo hahnjo commented Oct 18, 2024

No description provided.

This is needed to modify fields, for example to change the column
representation. It also fixes the assymmetry where previously the
const version could always be called, but the non-const version
would throw if the model was unfrozen.
}
model->GetField("v2._0").SetColumnRepresentatives({{EColumnType::kReal16}});

EXPECT_EQ(EColumnType::kReal32, model->GetField("v1._0").GetColumnRepresentatives()[0][0]);
Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't be more 'mainstream' to add (even if spurious here) a call to 'freeze' in the 'right' place?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, Jakob and me noticed that we first need to solve some other issues though: #16714

Copy link

Test Results

    18 files      18 suites   4d 0h 47m 28s ⏱️
 2 750 tests  2 743 ✅ 0 💤 7 ❌
46 081 runs  46 074 ✅ 0 💤 7 ❌

For more details on these failures, see this check.

Results for commit 69baf3d.

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