From db8beada6f0113ceda1b9a18b860c55e2d7ef5ba Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 8 Oct 2023 11:31:36 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- changelog/11456.bugfix.rst | 4 ---- 1 file changed, 4 deletions(-) diff --git a/changelog/11456.bugfix.rst b/changelog/11456.bugfix.rst index a9fefec28..06ddea229 100644 --- a/changelog/11456.bugfix.rst +++ b/changelog/11456.bugfix.rst @@ -1,6 +1,2 @@ In this, we propose a solution that ensures the generation of unique identifiers for ParameterSets in the make_unique_parameterset_ids method in Python.py class. It appends numeric suffixes to identifiers, ensuring uniqueness even when the original identifiers have digit endings. If the id ends in a digit, make then new id f"{id}_{suffix}". If the new id is already in the set of seen ids, increment the suffix number and try again. This is sure to work, and even be fast in practice, because our maximum suffix is the number of duplicate ids we started with. - - - -