Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed May 6, 2024
1 parent a9eb000 commit d1c981b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/evt/test_xtalk.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ def test_gather_energy(lgnd_test_data, files_config):
energy = xtalk.gather_energy(
"hit.cuspEmax_ctc_cal", tcm, f, np.array([1084803, 1084804])
)
n_rows = np.max(tcm.idx)+1
n_rows = np.max(tcm.idx) + 1
assert isinstance(energy, np.ndarray)
assert energy.ndim == 2
assert np.shape(energy) == (n_rows,2)
assert np.shape(energy) == (n_rows, 2)


def test_filter_hits(lgnd_test_data, files_config):
Expand All @@ -74,7 +74,7 @@ def test_filter_hits(lgnd_test_data, files_config):
),
)
n_rows = np.max(tcm.idx) + 1

filter = xtalk.filter_hits(
f,
tcm,
Expand All @@ -85,4 +85,4 @@ def test_filter_hits(lgnd_test_data, files_config):

assert isinstance(filter, np.ndarray)
assert filter.ndim == 2
assert np.shape(filter)==(n_rows,2)
assert np.shape(filter) == (n_rows, 2)

0 comments on commit d1c981b

Please sign in to comment.