diff --git a/test/test_fitting.py b/test/test_fitting.py index e9dd539..e2a9c22 100644 --- a/test/test_fitting.py +++ b/test/test_fitting.py @@ -4,13 +4,14 @@ from numpy import compress, unique, union1d, interp import random import alinea.adel.json_numpy as json_np -from os.path import join symbols = {'newPlant' : 1, 'newAxe' : 2, 'newMetamer' :3, 'StemElement':4, 'LeafElement':4} def leaves_db(): import alinea.adel.fitting as fitting from alinea.adel import data + from os.path import join + pth = data.__path__[0] fn = join(pth,'simpleleavesdb.json') with open(fn) as f: diff --git a/test/test_mtg.py b/test/test_mtg.py index 1d9b3aa..8461de2 100644 --- a/test/test_mtg.py +++ b/test/test_mtg.py @@ -9,6 +9,8 @@ def leaves_db(): import alinea.adel.fitting as fitting from alinea.adel import data + from os.path import join + pth = data.__path__[0] fn = join(pth,'simpleleavesdb.json') with open(fn) as f: