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 f7bfbe7 commit 577565a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test_mtg.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

def leaves_db():
import alinea.adel.fitting as fitting
fn = '../src/alinea/adel/data/simpleleavesdb.json'
from alinea.adel import data
pth = data.__path__[0]
fn = join(pth,'simpleleavesdb.json')
with open(fn) as f:
leaves = json_np.load(f)
leaves,discard = fitting.fit_leaves(leaves, 9)
Expand Down

0 comments on commit 577565a

Please sign in to comment.