Skip to content

Commit

Permalink
cleaned up tests on features that no longer exists
Browse files Browse the repository at this point in the history
  • Loading branch information
marufr committed Dec 9, 2024
1 parent 35231c1 commit 93060f8
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions tests/test_infrastructure_response_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
calculate_output_stats,
calculate_recovery_stats,
calculate_summary_statistics,
_calculate_class_failures,
_calculate_exceedance_probs,
_pe2pb,
parallel_recovery_analysis
)
Expand Down Expand Up @@ -108,23 +106,6 @@ def test_pe2pb_properties():
assert len(result) == len(pe) + 1
assert np.all(result >= 0)


def test_calculate_class_failures():
response_array = np.array([
[[1, 2], [2, 3]],
[[2, 3], [3, 4]]
])
comp_indices = np.array([0])
result = _calculate_class_failures(response_array, comp_indices, threshold=2)
assert isinstance(result, np.ndarray)
assert result.shape == (2, 2)

def test_calculate_exceedance_probs():
frag_array = np.array([[1, 2], [2, 3]])
result = _calculate_exceedance_probs(frag_array, num_samples=2)
assert isinstance(result, np.ndarray)
assert len(result) == 2

def test_calc_tick_vals():
# Test normal case
val_list = [0.1, 0.2, 0.3, 0.4, 0.5]
Expand Down

0 comments on commit 93060f8

Please sign in to comment.