Skip to content

Commit

Permalink
GPJ: fixing test_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gpadres committed Dec 29, 2024
1 parent a378f84 commit f2104e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Auxiliary data for test_utils.py suite of tests."""
from typing import Any, Dict, List
import os
from typing import Any, Dict, List

from numpy import array
from transformers import PreTrainedTokenizerFast
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,5 +269,5 @@ def test_compare_piis_lists(*, verbose: bool) -> None:
e_items = aux.e_items_test_compare_piis_lists_fact()
assert sorted_sim_items == e_items["e_sorted_sim_items"]
assert distr.keys() == e_items["e_distr"].keys()
for k in distr.keys():
for k in distr:
assert abs(distr[k] - e_items["e_distr"][k])<0.000001

0 comments on commit f2104e3

Please sign in to comment.