From 41c9f42b362df6232f4a879695adce56c80b7ffe Mon Sep 17 00:00:00 2001 From: Drew Leonard Date: Wed, 18 Sep 2024 11:38:03 +0100 Subject: [PATCH] Check that file manager values match all tiles --- dkist/dataset/tests/test_tiled_dataset.py | 6 +++++ dkist/dataset/tiled_dataset.py | 29 +++++++++++++++++------ 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/dkist/dataset/tests/test_tiled_dataset.py b/dkist/dataset/tests/test_tiled_dataset.py index 32f5c4363..45c430922 100644 --- a/dkist/dataset/tests/test_tiled_dataset.py +++ b/dkist/dataset/tests/test_tiled_dataset.py @@ -105,3 +105,9 @@ def test_file_manager(large_tiled_dataset): # Have some slicing tests here assert len(ds.slice_tiles[0].files.filenames) == 9 assert len(ds[:2, :2].files.filenames) == 12 + + # TODO Also test that the other checks raise errors + # This at least demonstrates that the structure works + ds[1, 1].files.fileuri_array.dtype = np.dtype("