Skip to content

Commit

Permalink
Log if the catalog is not sorted
Browse files Browse the repository at this point in the history
  • Loading branch information
arunkannawadi committed Apr 18, 2021
1 parent f19e399 commit f813e5d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/lsst/afw/table/Catalog.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "lsst/afw/table/io/FitsWriter.h"
#include "lsst/afw/table/io/FitsReader.h"
#include "lsst/afw/table/SchemaMapper.h"
#include "lsst/log/Log.h"

namespace lsst {
namespace afw {
Expand Down Expand Up @@ -769,6 +770,7 @@ typename CatalogT<RecordT>::iterator CatalogT<RecordT>::find(typename Field<T>::
if (i.base() == end()) {
return end();
}
LOGL_INFO("afw.table.Catalog", "Catalog is not sorted by the key. Finding a record may be slow.");
}
return i.base();
}
Expand All @@ -789,6 +791,7 @@ typename CatalogT<RecordT>::const_iterator CatalogT<RecordT>::find(typename Fiel
if (i.base() == end()) {
return end();
}
LOGL_INFO("afw.table.Catalog", "Catalog is not sorted by the key. Finding a record may be slow.");
}
return i.base();
}
Expand Down

0 comments on commit f813e5d

Please sign in to comment.