Commit 72e0b7496d28f3c83f0a4d247390462a5237a433

Authored by Jürgen Knödlseder
1 parent 0417bf5c

Use value() instead of filename() to retrieve output filename.

We use the value() method instead of the filename() method to retrieve the output filename as we do not want to check whether the file exists.
src/ctbin/ctbin.cpp
... ... @@ -441,7 +441,8 @@ void ctbin::get_parameters(void)
441 441 // Optionally read ahead parameters so that they get correctly
442 442 // dumped into the log file
443 443 if (m_read_ahead) {
444   - m_outfile = (*this)["outfile"].filename();
  444 + m_outfile = (*this)["outfile"].value();
  445 + m_prefix = (*this)["prefix"].value();
445 446 }
446 447  
447 448 // Return
... ...
src/ctselect/ctselect.cpp
... ... @@ -439,7 +439,8 @@ void ctselect::get_parameters(void)
439 439 // Optionally read ahead parameters so that they get correctly
440 440 // dumped into the log file
441 441 if (m_read_ahead) {
442   - m_outfile = (*this)["outfile"].filename();
  442 + m_outfile = (*this)["outfile"].value();
  443 + m_prefix = (*this)["prefix"].value();
443 444 }
444 445  
445 446 // Derive time interval
... ... @@ -661,7 +662,7 @@ void ctselect::init_members(void)
661 662 // Initialise parameters
662 663 m_infile.clear();
663 664 m_outfile.clear();
664   - m_infile.clear();
  665 + m_prefix.clear();
665 666 m_ra = 0.0;
666 667 m_dec = 0.0;
667 668 m_rad = 0.0;
... ... @@ -697,7 +698,7 @@ void ctselect::copy_members(const ctselect& app)
697 698 // Copy parameters
698 699 m_infile = app.m_infile;
699 700 m_outfile = app.m_outfile;
700   - m_infile = app.m_infile;
  701 + m_prefix = app.m_prefix;
701 702 m_ra = app.m_ra;
702 703 m_dec = app.m_dec;
703 704 m_rad = app.m_rad;
... ...