Skip to content

Commit

Permalink
More debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Nov 1, 2023
1 parent 52254ae commit 067a29a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extra_data/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
3 changes: 3 additions & 0 deletions extra_data/tests/test_streamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 067a29a

Please sign in to comment.