Skip to content

Commit

Permalink
TNTP SHA specified
Browse files Browse the repository at this point in the history
  • Loading branch information
chkwon committed May 15, 2017
1 parent 7aa2e38 commit 7db6d7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/TrafficAssignment.jl
Expand Up @@ -4,6 +4,9 @@ module TrafficAssignment
using LightGraphs, Optim, BinDeps


TNTP_SHA = "ca933f74c03af688dfffa33f4b00826cba672479"


include("load_network.jl")
include("frank_wolfe.jl")

Expand Down
4 changes: 2 additions & 2 deletions src/load_network.jl
Expand Up @@ -39,7 +39,7 @@ end
function download_tntp(force_download=false)
ta_root_dir = joinpath(dirname(dirname(@__FILE__)))
dest = ta_root_dir
data_dir = joinpath(dest, "TransportationNetworks-master")
data_dir = joinpath(dest, "TransportationNetworks-$(TNTP_SHA)")


# Download
Expand All @@ -48,7 +48,7 @@ function download_tntp(force_download=false)
rm(data_dir)
end
file = joinpath(ta_root_dir, "tntp.zip")
dl = download("https://github.com/bstabler/TransportationNetworks/archive/master.zip", file)
dl = download("https://github.com/bstabler/TransportationNetworks/archive/$(TNTP_SHA).zip", file)
run(unpack_cmd(file, dest, ".zip", ""))
rm(file)
end
Expand Down

0 comments on commit 7db6d7a

Please sign in to comment.