Skip to content
Snippets Groups Projects
Commit f83167e3 authored by Ask Hjorth Larsen's avatar Ask Hjorth Larsen
Browse files

attempt to fix writable paths

parent 171a1d76
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,9 @@ import krr as kr
import datetime as dt
#import orcaparse as op
# ------------------------Dictionary ML-----------------------------------------
writable_dir = '/home/beaker/myprivate'
krr_l1_param = \
{
# structural sigma used with laplace and gaussian kernels
......@@ -32,7 +35,7 @@ krr_l1_param = \
'data_path': "../data",
# to get some output, and where to put it
'debug': True,
'debug_filepath': "./ml_out_put/output_" +
'debug_filepath': writable_dir + "/ml_out_put/output_" +
dt.datetime.now().time().strftime("%I_%M_%S") +
".out"
}
......@@ -64,7 +67,7 @@ krr_l2_param = \
'data_path': "../data",
# to get some output, and where to put it
'debug': True,
'debug_filepath': "./ml_out_put/output_" +
'debug_filepath': writable_dir + "/ml_out_put/output_" +
dt.datetime.now().time().strftime("%I_%M_%S") +
".out"
}
......@@ -773,7 +776,10 @@ def beaker_entry(param):
ml_param['data_path'] = "./data"
ml_param['debug'] = True
ml_param['debug_filepath'] = "./ml_out_put/output_" + \
dirname = writable_dir + '/ml_out_put'
if not os.isdir(dirname):
os.mkdir(dirname)
ml_param['debug_filepath'] = dirname + "/output_" + \
dt.datetime.now().time().strftime("%I_%M_%S") \
+ ".out"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment