Skip to content

Commit

Permalink
Merge pull request #8 from tkelman/patch-1
Browse files Browse the repository at this point in the history
use dirname(@__FILE__) instead of Pkg.dir
  • Loading branch information
xiuliren authored Jun 16, 2017
2 parents e80dd36 + acbeb56 commit d3cf086
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_assets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ using EMIRT
using HDF5
using Base.Test

aff = h5read(joinpath(Pkg.dir(), "Watershed/assets/piriform.aff.h5"), "main")
aff = h5read(joinpath(dirname(@__FILE__), "../assets/piriform.aff.h5"), "main")

#seg = atomicseg(aff)
seg, rg = watershed(aff; is_threshold_relative = true)
Expand All @@ -13,7 +13,7 @@ seg, rg = watershed(aff; is_threshold_relative = true)

# compare with segmentation

seg0 = readseg(joinpath(Pkg.dir(), "Watershed/assets/piriform.seg.h5"))
seg0 = readseg(joinpath(dirname(@__FILE__), "../assets/piriform.seg.h5"))

err = segerror(seg0, seg)

Expand Down

0 comments on commit d3cf086

Please sign in to comment.