Merge pull request #3075 from rcurtin/det-output-fix

det: don't print filename unless it's actually given
This commit is contained in:
Ryan Curtin
2021-10-21 09:51:41 -04:00
committed by GitHub
+1 -1
View File
@@ -238,7 +238,7 @@ void BINDING_FUNCTION(util::Params& params, util::Timers& timers)
arma::Row<size_t> counters;
timers.Start("det_test_set_tagging");
if (!ofs.is_open())
if (!ofs.is_open() && tagFile != "")
{
Log::Warn << "Unable to open file '" << tagFile
<< "' to save tag membership info." << std::endl;