From fc69e2295a501643707aa2887afb96b13749ba3b Mon Sep 17 00:00:00 2001 From: Joshua Krause <52180639+JoKra1@users.noreply.github.com> Date: Tue, 12 Mar 2024 11:47:37 +0100 Subject: [PATCH] Preparing test data --- tests/test_gamm.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_gamm.py b/tests/test_gamm.py index cbd0826..c40afa1 100644 --- a/tests/test_gamm.py +++ b/tests/test_gamm.py @@ -1,9 +1,10 @@ from mssm.models import * import numpy as np +import os class Test_GAM: - dat = pd.read_csv("./test_gamm.csv") + dat = pd.read_csv(os.path.join(os.path.dirname(__file__), 'test_gamm.csv')) # mssm requires that the data-type for variables used as factors is 'O'=object dat = dat.astype({'series': 'O', @@ -37,7 +38,7 @@ def test_GAMlam(self): class Test_GAMM: - dat = pd.read_csv("./test_gamm.csv") + dat = pd.read_csv(os.path.join(os.path.dirname(__file__), 'test_gamm.csv')) # mssm requires that the data-type for variables used as factors is 'O'=object dat = dat.astype({'series': 'O',