Skip to content

Commit

Permalink
Fix local path in test
Browse files Browse the repository at this point in the history
  • Loading branch information
pradal committed May 12, 2022
1 parent 577565a commit 825458a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_fitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions test/test_mtg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 825458a

Please sign in to comment.