Skip to content

Commit 8885949

Browse files
committed
remove unsued include, fix warnings in MoffatModelFitting
1 parent 77ba254 commit 8885949

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

SEImplementation/src/lib/Plugin/MoffatModelFitting/MoffatModelFittingTask.cpp

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#include <mutex>
3030

3131
#include "AlexandriaKernel/memory_tools.h"
32-
#include "SEImplementation/Plugin/Psf/PsfProperty.h"
3332
#include "SEImplementation/Plugin/MoffatModelFitting/MoffatModelFitting.h"
3433
#include "SEImplementation/Plugin/MoffatModelFitting/MoffatModelFittingTask.h"
3534
#include "ElementsKernel/PathSearch.h"
@@ -260,16 +259,16 @@ void MoffatModelFittingTask::computeProperties(SourceInterface& source) const {
260259
{
261260

262261
// renders an image of the model for a single source with the final parameters
263-
std::vector<std::shared_ptr<ModelFitting::ExtendedModel<ImageInterfaceTypePtr>>> extended_models{};
264-
std::vector<PointModel> point_models{};
265-
std::vector<ConstantModel> constant_models{};
266-
source_model->createModels(extended_models, point_models);
262+
std::vector<std::shared_ptr<ModelFitting::ExtendedModel<ImageInterfaceTypePtr>>> tmp_extended_models{};
263+
std::vector<PointModel> tmp_point_models{};
264+
std::vector<ConstantModel> tmp_constant_models{};
265+
source_model->createModels(tmp_extended_models, tmp_point_models);
267266
FrameModel<NullPsf<VectorImageType>, VectorImageType> frame_model_after{1,
268267
(size_t)source_stamp.getWidth(),
269268
(size_t)source_stamp.getHeight(),
270-
std::move(constant_models),
271-
std::move(point_models),
272-
std::move(extended_models)};
269+
std::move(tmp_constant_models),
270+
std::move(tmp_point_models),
271+
std::move(tmp_extended_models)};
273272
auto final_image = frame_model_after.getImage();
274273

275274
// integrates the flux for that source

SEImplementation/tests/src/Plugin/MoffatModelFitting/MoffatModelFitting_test.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
#include "SEImplementation/Plugin/DetectionFrameSourceStamp/DetectionFrameSourceStamp.h"
4141
#include "SEImplementation/Plugin/DetectionFrameCoordinates/DetectionFrameCoordinates.h"
4242
#include "SEImplementation/Plugin/DetectionFrameInfo/DetectionFrameInfo.h"
43-
#include "SEImplementation/Plugin/Psf/PsfProperty.h"
4443
#include "SEImplementation/Plugin/IsophotalFlux/IsophotalFlux.h"
4544
#include "SEFramework/Property/DetectionFrame.h"
4645

0 commit comments

Comments
 (0)