Skip to content

Commit 7363db0

Browse files
committed
v0.3.21
1 parent 914ff35 commit 7363db0

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.3.21] - 2025-07-22
8+
### Fixed
9+
- Fixed linting issues. Thanks to @diegoceccarelli.
10+
- Fixed unsafe dictionary key removal in `Run.make_comparable`.
11+
712
## [0.3.20] - 2024-11-28
813
### Changed
914
- `Report` now allows for export to Pandas DataFrame thanks to @hotchpotch contrib.

ranx/data_structures/run.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,12 @@ def make_comparable(self, qrels: Qrels):
147147
self.run[q_id] = create_empty_results_dict()
148148

149149
# Remove results for additional queries
150+
to_remove = []
150151
for q_id in self.run:
151152
if q_id not in qrels.qrels:
152-
del self.run[q_id]
153+
to_remove.append(q_id)
154+
for q_id in to_remove:
155+
del self.run[q_id]
153156

154157
self.sort()
155158

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="ranx",
8-
version="0.3.20",
8+
version="0.3.21",
99
author="Elias Bassani",
1010
author_email="elias.bssn@gmail.com",
1111
description="ranx: A Blazing-Fast Python Library for Ranking Evaluation, Comparison, and Fusion",

0 commit comments

Comments
 (0)