From a398151700a92660c69e1be024a2679e8bc1b4fb Mon Sep 17 00:00:00 2001 From: Abe Levitan Date: Sun, 24 Mar 2019 18:02:54 -0400 Subject: [PATCH] Changed how I plan to test for compatibility with different beamlines --- .gitignore | 1 + tests/tools/test_data.py | 30 +++++------------------------- 2 files changed, 6 insertions(+), 25 deletions(-) diff --git a/.gitignore b/.gitignore index ebb220f..a513173 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ *~ \#*# +.\#* *.pyc *.egg-info .pytest_cache diff --git a/tests/tools/test_data.py b/tests/tools/test_data.py index c8b54ee..ed8b508 100644 --- a/tests/tools/test_data.py +++ b/tests/tools/test_data.py @@ -282,31 +282,11 @@ def ptycho_cxi_3(): return f, expected - -@pytest.fixture(scope='module') -def real_ptycho_CSX(datadir): - """Loads a real ptychography file from CSX @ NSLS-II along with a - dictionary describing what is expected to be loaded from it. - """ - #file_obj = h5py.File(datadir/'example_CSX_Bragg.cxi','r') - #expected = {} - #return file_obj, expected - pass - - -@pytest.fixture(scope='module') -def real_ptycho_HXN(datadir): - """Loads a real ptychography file from HXN @ NSLS-II along with a - dictionary describing what is expected to be loaded from it. - """ - pass - -@pytest.fixture(scope='module') -def real_ptycho_COSMIC(datadir): - """Loads a real ptychography file from COSMIC @ ALS along with a - dictionary describing what is expected to be loaded from it. - """ - pass +# +# As specific issues start to crop up with loading CXI files from different +# beamlines, put a fixture here that replicates the issue so that we can +# ensure compatibility with many beamlines +# @pytest.fixture(scope='module')