diff --git a/src/ctbin/ctbin.cpp b/src/ctbin/ctbin.cpp index de35711..53095b6 100644 --- a/src/ctbin/ctbin.cpp +++ b/src/ctbin/ctbin.cpp @@ -441,7 +441,8 @@ void ctbin::get_parameters(void) // Optionally read ahead parameters so that they get correctly // dumped into the log file if (m_read_ahead) { - m_outfile = (*this)["outfile"].filename(); + m_outfile = (*this)["outfile"].value(); + m_prefix = (*this)["prefix"].value(); } // Return diff --git a/src/ctselect/ctselect.cpp b/src/ctselect/ctselect.cpp index 3dc3b20..0454b23 100644 --- a/src/ctselect/ctselect.cpp +++ b/src/ctselect/ctselect.cpp @@ -439,7 +439,8 @@ void ctselect::get_parameters(void) // Optionally read ahead parameters so that they get correctly // dumped into the log file if (m_read_ahead) { - m_outfile = (*this)["outfile"].filename(); + m_outfile = (*this)["outfile"].value(); + m_prefix = (*this)["prefix"].value(); } // Derive time interval @@ -661,7 +662,7 @@ void ctselect::init_members(void) // Initialise parameters m_infile.clear(); m_outfile.clear(); - m_infile.clear(); + m_prefix.clear(); m_ra = 0.0; m_dec = 0.0; m_rad = 0.0; @@ -697,7 +698,7 @@ void ctselect::copy_members(const ctselect& app) // Copy parameters m_infile = app.m_infile; m_outfile = app.m_outfile; - m_infile = app.m_infile; + m_prefix = app.m_prefix; m_ra = app.m_ra; m_dec = app.m_dec; m_rad = app.m_rad;