Skip to content

Commit 1dc5b51

Browse files
committed
Pattern #4 DANVA: fix ruff format on _calibration.py
Same root cause as Pattern #2 fix: format pass missed a file edited after the previous format. CI lint rejected the unformatted file. I need to start adding a pre-commit hook locally so this stops happening. No semantic changes -- pure whitespace.
1 parent dbce85c commit 1dc5b51

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

module-1-individual/04-danva-emotion-reader/lib/_calibration.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,8 @@ def compare_to_baseline(
5555
current: EmotionRecognitionAnalysis, baseline: EmotionRecognitionAnalysis
5656
) -> BaselineComparison:
5757
"""Compute a :class:`BaselineComparison`."""
58-
curr_by_emotion: dict[str, float] = {
59-
str(m.emotion): m.accuracy for m in current.metrics
60-
}
61-
base_by_emotion: dict[str, float] = {
62-
str(m.emotion): m.accuracy for m in baseline.metrics
63-
}
58+
curr_by_emotion: dict[str, float] = {str(m.emotion): m.accuracy for m in current.metrics}
59+
base_by_emotion: dict[str, float] = {str(m.emotion): m.accuracy for m in baseline.metrics}
6460
deltas: dict[str, float] = {}
6561
for e in EMOTION_CATEGORIES:
6662
c = float(curr_by_emotion.get(e, 0.0))

0 commit comments

Comments
 (0)