Skip to content

Commit

Permalink
Merge pull request #34 from inception-project/bug-33-access-first-ite…
Browse files Browse the repository at this point in the history
…m-in-dictionary-without-removing-it

Bug 33 access first item in dictionary without removing it
  • Loading branch information
serwarde authored May 28, 2024
2 parents 08febcd + c24c793 commit 49bdb5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inception_reports/generate_reports_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def get_type_counts(annotations):
dict: A dictionary containing the count of each type.
"""
count_dict = {}
layerDefinition = annotations.popitem()[1].select(
layerDefinition = next(iter(annotations.values())).select(
"de.tudarmstadt.ukp.clarin.webanno.api.type.LayerDefinition"
)
for doc in annotations:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "inception_reports"
description = "Generate plots that report the progress of an INCEpTION project."
version = "0.3.2"
version = "0.4"
authors = [
{ name = "Serwar", email = "serwar.basch@tu-darmstadt.de" }
]
Expand Down

0 comments on commit 49bdb5c

Please sign in to comment.