diff --git a/indica/readers/surf_los.dat b/indica/data/surf_los.dat similarity index 100% rename from indica/readers/surf_los.dat rename to indica/data/surf_los.dat diff --git a/indica/readers/ppfreader.py b/indica/readers/ppfreader.py index 0f2a44a1..ccf563bf 100644 --- a/indica/readers/ppfreader.py +++ b/indica/readers/ppfreader.py @@ -33,7 +33,7 @@ from ..utilities import to_filename -SURF_PATH = Path(surf_los.__file__).parent / "surf_los.dat" +SURF_PATH = Path(surf_los.__file__).parent.parent / "data/surf_los.dat" class PPFError(Exception): diff --git a/tests/unit/readers/test_surf.py b/tests/unit/readers/test_surf.py index e98810f4..0a7c6ba5 100644 --- a/tests/unit/readers/test_surf.py +++ b/tests/unit/readers/test_surf.py @@ -20,7 +20,7 @@ import indica.readers.surf_los as surf_los -filepath = Path(surf_los.__file__).parent / "surf_los.dat" +filepath = Path(surf_los.__file__).parent.parent / "data/surf_los.dat" PIXEL = 0.00099 diff --git a/tests/unit/test_session.py b/tests/unit/test_session.py index 67b3f0ab..ed5f3a09 100644 --- a/tests/unit/test_session.py +++ b/tests/unit/test_session.py @@ -70,6 +70,7 @@ def test_session_context_manager(): assert session.global_session == new_session assert session.global_session == old_session + def test_dependency_provenance(): session = Session("rand.m.person@ukaea.uk") dependencies = list(