Skip to content

Commit

Permalink
fix: start numbering concepts from 1
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brandreth committed Sep 19, 2024
1 parent 77dfb39 commit b809d1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/miade/annotators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b809d1e

Please sign in to comment.