Skip to content

Commit

Permalink
road to windows ls.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-zieba committed Nov 9, 2023
1 parent b7ef45a commit 2b3c0fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/pacman/lib/least_squares.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ def lsq_fit(fit_par, data, meta, model, myfuncs, noclip=False):
if m.errmsg: print("MPFIT error message", m.errmsg)

if meta.run_verbose:
f_lsq = open(meta.workdir + meta.fitdir + '/lsq_res/' + "/lsq_res_bin{0}_wvl{1:0.3f}.txt".format(meta.s30_file_counter, meta.wavelength), 'w')
f_lsq = open(os.path.join(meta.workdir, meta.fitdir, 'lsq_res', "lsq_res_bin{0}_wvl{1:0.3f}.txt".format(meta.s30_file_counter, meta.wavelength)), 'w')
PrintParams(m, data, savefile=f_lsq)
f_lsq.close()
PrintParams(m, data)

if meta.save_fit_lc_plot:
if not os.path.isdir(meta.workdir + meta.fitdir + '/fit_lc'):
os.makedirs(meta.workdir + meta.fitdir + '/fit_lc')
if not os.path.isdir(os.path.join(meta.workdir, meta.fitdir, 'fit_lc')):
os.makedirs(os.path.join(meta.workdir, meta.fitdir, 'fit_lc'))
plots.plot_fit_lc2(data, model, meta)
plots.plot_fit_lc3(data, model, meta)
plots.save_plot_raw_data(data, meta)
Expand Down
6 changes: 3 additions & 3 deletions src/pacman/lib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,9 +788,9 @@ def create_res_dir(meta):
"""
Creates the result directory depending on which fitters were used.
"""
print(meta.workdir)
print(meta.fitdir)
print(os.path.join(meta.workdir, meta.fitdir, 'lsq_res'))
print('HALLLLLLLLLLLLLLLLLLLLLLLLLLLLLLOOOOOOOOOOOOOOOOOOOOO????????????????????????????????', meta.workdir)
print('HALLLLLLLLLLLLLLLLLLLLLLLLLLLLLLOOOOOOOOOOOOOOOOOOOOO????????????????????????????????222222', meta.fitdir)
print('HALLLLLLLLLLLLLLLLLLLLLLLLLLLLLLOOOOOOOOOOOOOOOOOOOOO???????????????????????????????3333333333333?', os.path.join(meta.workdir, meta.fitdir, 'lsq_res'))
if meta.run_lsq:
if not os.path.isdir(os.path.join(meta.workdir, meta.fitdir, 'lsq_res')):
os.makedirs(os.path.join(meta.workdir, meta.fitdir, 'lsq_res'))
Expand Down

0 comments on commit 2b3c0fe

Please sign in to comment.