Skip to content

Commit 370a318

Browse files
Added cloning script
1 parent 400bfcf commit 370a318

File tree

3 files changed

+45
-1
lines changed

3 files changed

+45
-1
lines changed

Manifest.toml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
julia_version = "1.10.5"
44
manifest_format = "2.0"
5-
project_hash = "cdfaa63cde653042f86555ed251b9c4641d8ee78"
5+
project_hash = "fe1c3697fb0d06ebc454913e1019ea85a94e594c"
66

77
[[deps.ArgTools]]
88
uuid = "0dad84c5-d112-42e6-8d28-ef12dabb789f"
@@ -54,6 +54,12 @@ git-tree-sha1 = "91d501cb908df6f134352ad73cde5efc50138279"
5454
uuid = "033835bb-8acc-5ee8-8aae-3f567f8a3819"
5555
version = "0.5.11"
5656

57+
[[deps.JSON]]
58+
deps = ["Dates", "Mmap", "Parsers", "Unicode"]
59+
git-tree-sha1 = "31e996f0a15c7b280ba9f76636b3ff9e2ae58c9a"
60+
uuid = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
61+
version = "0.21.4"
62+
5763
[[deps.LibCURL]]
5864
deps = ["LibCURL_jll", "MozillaCACerts_jll"]
5965
uuid = "b27032c2-a3e7-50c8-80cd-2d36dbcbfd21"
@@ -114,6 +120,12 @@ git-tree-sha1 = "cc4054e898b852042d7b503313f7ad03de99c3dd"
114120
uuid = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
115121
version = "1.8.0"
116122

123+
[[deps.Parsers]]
124+
deps = ["Dates", "PrecompileTools", "UUIDs"]
125+
git-tree-sha1 = "8489905bcdbcfac64d1daa51ca07c0d8f0283821"
126+
uuid = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0"
127+
version = "2.8.1"
128+
117129
[[deps.Pkg]]
118130
deps = ["Artifacts", "Dates", "Downloads", "FileWatching", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "Serialization", "TOML", "Tar", "UUIDs", "p7zip_jll"]
119131
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"

Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ name = "JuliaHealthLLM"
22
authors = ["Jacob S. Zelko", "Param Thakkar"]
33

44
[deps]
5+
Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
56
DrWatson = "634d3b9d-ee7a-5ddf-bec9-22491ea816e1"
7+
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
8+
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
69

710
[compat]
811
DrWatson = "2.18"

scripts/clone.jl

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
using LibGit2
2+
using Downloads
3+
using Printf
4+
5+
repos = [
6+
"https://github.com/JuliaHealth/MedEval3D.jl.git", #Example, can add more repos here
7+
]
8+
9+
data_dir = "data/exp_raw"
10+
11+
if !isdir(data_dir)
12+
mkdir(data_dir)
13+
end
14+
15+
for repo in repos
16+
repo_name = split(repo, "/")[end]
17+
repo_path = joinpath(data_dir, replace(repo_name, ".git" => ""))
18+
19+
if isdir(repo_path)
20+
@printf("Skipping %s, already cloned.\n", repo)
21+
else
22+
try
23+
LibGit2.clone(repo, repo_path)
24+
@printf("Successfully cloned %s\n", repo)
25+
catch e
26+
@printf("Failed to clone %s: %s\n", repo, e)
27+
end
28+
end
29+
end

0 commit comments

Comments
 (0)