1
0
Fork 0
mirror of https://github.com/MillironX/beefblup.git synced 2024-12-22 09:08:16 +00:00

Add results filename assumption

This commit is contained in:
Thomas A. Christensen II 2021-06-18 15:25:34 -05:00
parent 5048d3a1b8
commit 7cf650992d
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

@ -48,6 +48,17 @@ beefblup(path, savepath, h2)
end
function beefblup(datafile::String, h2::Float64)
# Assume the data is named the same as the file without the trailing extension
dataname = split(datafile, ".")[1:end-1]
# Create a new results name
resultsfile = string(dataname, "_results.txt")
# Pass this info on to the worker
beefblup(datafile, resultsfile, h2)
end
# Main worker function, can perform all the work if given all the user input
function beefblup(path::String, savepath::String, h2::Float64)