From c14cff9ebdbc9716ceef7ee6dacd472b313fb915 Mon Sep 17 00:00:00 2001 From: SanderBorgmans Date: Thu, 3 Aug 2023 14:46:01 +0200 Subject: [PATCH] Change location of test files, and correct path --- scripts/gpxrd_test.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/gpxrd_test.py b/scripts/gpxrd_test.py index 59e9953..a745a08 100755 --- a/scripts/gpxrd_test.py +++ b/scripts/gpxrd_test.py @@ -13,8 +13,9 @@ def check_import(): def check_calculation(): from gpxrdpy.gpxrd_utils import create_crystal, calculate - filename = 'tests/data/COF-5.cif' - obspattern = 'tests/data/exp.tsv' + data_path = os.path.join(os.path.dirname(__file__), 'data') + filename = os.path.join(data_path,'COF-5.cif') + obspattern = os.path.join(data_path,'exp.tsv') # Calculate the PXRD pattern and save the output # Also provide a reference pattern to perform a comparison analysis