mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-12 12:40:33 +08:00
Add set_user_attr in rename_study api
This commit is contained in:
@@ -159,6 +159,8 @@ def create_app(
|
||||
storage=storage, study_name=dst_study_name, directions=src_study.directions
|
||||
)
|
||||
dst_study.add_trials(src_study.get_trials(deepcopy=False))
|
||||
for key, value in src_study.user_attrs.items():
|
||||
dst_study.set_user_attr(key, value)
|
||||
note.copy_notes(storage, src_study, dst_study)
|
||||
except DuplicatedStudyError:
|
||||
response.status = 400 # Bad request
|
||||
|
||||
Reference in New Issue
Block a user