Skip to content

Commit

Permalink
Merge pull request #32 from mkschleg/develop_test
Browse files Browse the repository at this point in the history
Develop test
  • Loading branch information
mkschleg authored Jul 24, 2019
2 parents a4c0c6f + a3335e8 commit 7188c6b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/exp_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ end


function create_experiment_dir(exp_dir::String;
org_file=true, replace=false)
org_file=true,
replace=false,
tldr="")

if isdir(exp_dir)
if !replace
Expand All @@ -49,9 +51,10 @@ function create_experiment_dir(exp_dir::String;
end
end

f = open(joinpath(exp_dir, "notes.org"), "w")
write(f, "#+title: Experimental Notes for $(exp_dir)\n\n\n")
close(f)
open(joinpath(exp_dir, "notes.org"), "w") do f
write(f, "#+title: Experimental Notes for $(exp_dir)\n\n")
write(f, "TL;DR: $(tldr)\n\n")
end

return
end
Expand Down

0 comments on commit 7188c6b

Please sign in to comment.