Skip to content

Commit

Permalink
Added unit test for new signature. this refs #294
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanBilheux committed Mar 2, 2024
1 parent 064267d commit bab5447
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit/backend/dataio/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ def test_load_data(
# case_1: load data from given directory
rst = load_data(ct_dir="/tmp", ob_dir="/tmp", dc_dir="/tmp")
np.testing.assert_almost_equal(np.array(rst).flatten(), np.arange(1, 5, dtype=float))
# case_2: load ct from directory, ob and dc from files
rst = load_data(ct_dir="/tmp", ob_files=["3", "4"], dc_files=["5", "6"])
np.testing.assert_almost_equal(np.array(rst).flatten(), np.arange(1, 5, dtype=float))


def test_forgiving_reader():
Expand Down

0 comments on commit bab5447

Please sign in to comment.