Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
fix(plots): correct type of slot & account for None mainstat
Browse files Browse the repository at this point in the history
  • Loading branch information
trumully committed Apr 17, 2024
1 parent 1918b1a commit 0948acb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/artipy/analysis/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ def plot_expected_against_actual_mainstats(iterations: int = 1000) -> None:
}

for a in artifacts:
slot: ArtifactSlot = ArtifactSlot(a.artifact_slot)
if slot in expected_mainstats:
slot: ArtifactSlot = ArtifactSlot(str(a.artifact_slot))
if slot in expected_mainstats and a.mainstat is not None:
actual_mainstats[slot].append(a.mainstat.name)

actual_mainstats_pct: dict[ArtifactSlot, dict[StatType, float]] = {
Expand Down

0 comments on commit 0948acb

Please sign in to comment.