Loading run.jl +7 −1 Original line number Diff line number Diff line Loading @@ -8,6 +8,10 @@ using Dates using TextParse import StatsBase, JLD2 if readlines(`hostname`)[1] != "giorgio-pc" Gnuplot.options.term="sixelgd size 800,600" end function read_epochs() out = DataFrame(id=Int[], filename=String[], date=String[], scale=Float64[], OIII_fwhm=Float64[]) for (root, dirs, files) in walkdir("AT2018zf") Loading Loading @@ -121,6 +125,7 @@ function analyze_job(job; Nloop = 6) viewer(res, showcomps=[:qso_cont, :galaxy, :balmer], filename="$(opt.path)/results_$(job)_$(loop)_rebin4.html", rebin=4) else res = JLD2.load_object(file); println(iloop, " ", res.fitres.gofstat / res.fitres.dof, " ", res.fitres.elapsed / 3600.) end OIII_norm = Float64[] Loading @@ -136,8 +141,9 @@ function analyze_job(job; Nloop = 6) @gp "set grid" :- for i in 1:length(epoch_ids[job]) id = epoch_ids[job][i] @gp :- 1:Nloop out[i, :] "w lp t '$(id)'" @gp :- 1:Nloop out[i, :] "w lp t '$(id)'" :- end @gp return out end Loading Loading
run.jl +7 −1 Original line number Diff line number Diff line Loading @@ -8,6 +8,10 @@ using Dates using TextParse import StatsBase, JLD2 if readlines(`hostname`)[1] != "giorgio-pc" Gnuplot.options.term="sixelgd size 800,600" end function read_epochs() out = DataFrame(id=Int[], filename=String[], date=String[], scale=Float64[], OIII_fwhm=Float64[]) for (root, dirs, files) in walkdir("AT2018zf") Loading Loading @@ -121,6 +125,7 @@ function analyze_job(job; Nloop = 6) viewer(res, showcomps=[:qso_cont, :galaxy, :balmer], filename="$(opt.path)/results_$(job)_$(loop)_rebin4.html", rebin=4) else res = JLD2.load_object(file); println(iloop, " ", res.fitres.gofstat / res.fitres.dof, " ", res.fitres.elapsed / 3600.) end OIII_norm = Float64[] Loading @@ -136,8 +141,9 @@ function analyze_job(job; Nloop = 6) @gp "set grid" :- for i in 1:length(epoch_ids[job]) id = epoch_ids[job][i] @gp :- 1:Nloop out[i, :] "w lp t '$(id)'" @gp :- 1:Nloop out[i, :] "w lp t '$(id)'" :- end @gp return out end Loading