Skip to content

Commit

Permalink
also update functions in frame config
Browse files Browse the repository at this point in the history
  • Loading branch information
marcschefer committed Aug 30, 2024
1 parent 2a60a3b commit 0420987
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void DetectionFrameConfig::initialize(const UserValues& ) {
auto detection_frame = std::make_shared<DetectionImageFrame>(detection_image, weight_image,
weight_threshold, detection_image_coordinate_system, detection_image_gain,
detection_image_saturation, interpolation_gap);
detection_frame->setLabel(boost::filesystem::basename(detection_image_path));
detection_frame->setLabel(boost::filesystem::path(detection_image_path).stem().string());

auto background_analyzer = getDependency<BackgroundAnalyzerFactory>().createBackgroundAnalyzer();
auto background_model = background_analyzer->analyzeBackground(detection_frame->getOriginalImage(), weight_image,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void MeasurementFrameConfig::initialize(const UserValues&) {
}

std::stringstream label;
label << boost::filesystem::basename(image_info.m_path) << "_" << image_info.m_image_hdu;
label << boost::filesystem::path(image_info.m_path).stem().string() << "_" << image_info.m_image_hdu;
measurement_frame->setLabel(label.str());

if (image_info.m_weight_image != nullptr) {
Expand Down

0 comments on commit 0420987

Please sign in to comment.