From b809d1e7ac86d6d1b914da19e409e3a845aafde2 Mon Sep 17 00:00:00 2001 From: James Brandreth Date: Thu, 19 Sep 2024 11:38:12 +0100 Subject: [PATCH] fix: start numbering concepts from 1 --- src/miade/annotators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/miade/annotators.py b/src/miade/annotators.py index 1b7e1e5..c80c504 100644 --- a/src/miade/annotators.py +++ b/src/miade/annotators.py @@ -488,9 +488,9 @@ def add_numbering_to_name(concepts: List[Concept]) -> List[Concept]: Returns: The list of concepts with numbering added to their names. """ - # Prepend numbering to problem concepts e.g. 00 asthma, 01 stroke... + # Prepend numbering to problem concepts e.g. 01 asthma, 02 stroke... for i, concept in enumerate(concepts): - concept.name = f"{i:02} {concept.name}" + concept.name = f"{(i+1):02} {concept.name}" return concepts