Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 22, 2024
1 parent 43f5c4c commit e9ce1fc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/results/test_aggregator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
import re
import shutil
from pathlib import Path
from typing import List, Callable, Any
from typing import Any
from typing import Callable
from typing import List
from typing import Literal

import attr
Expand Down Expand Up @@ -512,10 +514,13 @@ def test_read_history_matching_result_data(
the means of the fixtures, but only one is used at a time.
"""
import numpy as np

# Setup.
slicer: Callable[[int], Any]
if hm_type == "HM-probabilistic":
expected_results = np.array([[0.1, 3.0], [0.22, 6.0], [1.0, 5.1], [0.8, 4.7], [0.55, 6.3]])
expected_results = np.array(
[[0.1, 3.0], [0.22, 6.0], [1.0, 5.1], [0.8, 4.7], [0.55, 6.3]]
)
results_dir = hm_probabilistic_results_dir
slicer = lambda index: (slice(None), index)
else:
Expand Down

0 comments on commit e9ce1fc

Please sign in to comment.