From 067a29aedac935eab0807572237decf49a47f2e5 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Wed, 1 Nov 2023 14:05:41 +0000 Subject: [PATCH] More debugging --- extra_data/reader.py | 3 ++- extra_data/tests/test_streamer.py | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/extra_data/reader.py b/extra_data/reader.py index 6d0f7e20..356da63a 100644 --- a/extra_data/reader.py +++ b/extra_data/reader.py @@ -1880,7 +1880,8 @@ def open_run( # explicitly disable loading aliases again because this will print # out an extra 'aliases loaded' message. proc_dc = open_run(**common_args, data='proc', aliases=None) - except FileNotFoundError: + except FileNotFoundError as e: + print(e) warn("Proc data is not available for this run") else: print(f"Opened proc data with {len(proc_dc.all_sources)} sources") diff --git a/extra_data/tests/test_streamer.py b/extra_data/tests/test_streamer.py index 7ff3ee3c..e3cf9210 100644 --- a/extra_data/tests/test_streamer.py +++ b/extra_data/tests/test_streamer.py @@ -77,6 +77,9 @@ def test_serve_files(mock_fxe_raw_run, tmp_path): @pytest.mark.skipif(os.name != 'posix', reason="Test uses Unix socket") def test_serve_run(mock_spb_raw_and_proc_run, tmp_path): mock_data_root, _, _ = mock_spb_raw_and_proc_run + from pathlib import Path + for p in Path(mock_data_root).rglob('*.h5'): + print(" ", p) zmq_endpoint = f'ipc://{tmp_path}/socket' xgm_src = 'SPB_XTD9_XGM/DOOCS/MAIN' agipd_m0_src = 'SPB_DET_AGIPD1M-1/DET/0CH0:xtdf'