Skip to content

Add error_on_overwrite option in attr-related storage apis - #5

Merged
c-bata merged 1 commit into
mainfrom
c-bata/set-attr-error-on-overwrite
Dec 5, 2025
Merged

c-bata merged 1 commit into
mainfrom
c-bata/set-attr-error-on-overwrite

Conversation

@c-bata

@c-bata c-bata commented Dec 5, 2025

Copy link
Copy Markdown
Member

Currently, CategoricalDistribution's choices field is stored in study_system_attrs. For the atomic updates, this PR introduces error_on_overwrite option to set_study_attrs() and set_trial_attrs storage methods.

param_name: String,
choices: Vec<PyObject>,
) -> PyResult<()> {
// TODO(c-bata): Add validation to detect changes of the choices.

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.

Note: The main motivation for introducing error_on_overwrite option is resolving this todo item.

@c-bata
c-bata force-pushed the c-bata/set-attr-error-on-overwrite branch from 7265627 to 0f9eb1f Compare December 5, 2025 04:32
@c-bata
c-bata merged commit 19fe048 into main Dec 5, 2025
8 checks passed
@c-bata
c-bata deleted the c-bata/set-attr-error-on-overwrite branch December 5, 2025 04:50
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