Skip to content

Commit 29b3ce2

Browse files
committed
Merge branch 'develop' into feature/psf_no_renormalization
2 parents 330c136 + 4b294b7 commit 29b3ce2

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.github/workflows/dependencies.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ $PYTHON-numpy
33
$PYTHON-pytest
44
$PYTHON-sphinx
55
$PYTHON-setuptools
6+
$PYTHON-dnf
67
CCfits-devel
78
blas-devel
89
$BOOST-$PYTHON-devel

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ find_package(ElementsProject)
66
#---------------------------------------------------------------
77

88
# Declare project name and version
9-
elements_project(SourceXtractorPlusPlus 0.23 USE Alexandria 2.31.0 DESCRIPTION "SourceXtractor++, the next generation SExtractor")
9+
elements_project(SourceXtractorPlusPlus 0.23 USE Alexandria 2.31.4 DESCRIPTION "SourceXtractor++, the next generation SExtractor")

SEImplementation/src/lib/Grouping/MoffatGrouping.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,14 @@ void MoffatGrouping::receiveSource(std::unique_ptr<SourceInterface> source) {
6262
// Encapsulates the source unique_ptr
6363
auto& centroid = source->getProperty<PixelCentroid>();
6464

65+
// Creates a SourceInfo to contain the unique_ptr to the source, coordinates and group_id
6566
auto source_info = std::make_shared<SourceInfo>();
6667
source_info->m_source = std::move(source);
6768
source_info->m_x = centroid.getCentroidX();
6869
source_info->m_y = centroid.getCentroidY();
6970
source_info->m_group_id = m_group_counter++;
7071

72+
// Make a group containing only the source
7173
auto group = std::make_shared<Group>();
7274
group->push_back(source_info);
7375
m_groups[source_info->m_group_id] = group;

SEUtils/SEUtils/_impl/QuadTree.icpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,10 @@ template<typename T>
6464
void QuadTree<T>::remove(const T& data) {
6565
if (m_is_divided) {
6666
auto c = Coord { Traits::getCoord(data, 0), Traits::getCoord(data, 1) };
67-
auto quad = getQuadrant(c);
68-
if (m_sub_trees[quad] != nullptr) {
69-
m_sub_trees[quad]->remove(data);
67+
for (int i=0; i<4; i++) {
68+
if (m_sub_trees[i] != nullptr && m_sub_trees[i]->isContained(c)) {
69+
m_sub_trees[i]->remove(data);
70+
}
7071
}
7172
} else {
7273
auto it = std::find(m_data.begin(), m_data.end(), data);

0 commit comments

Comments
 (0)