Skip to content

Commit cd1947f

Browse files
committed
Weird corner case for WAVES fixed (to do with masked mixed with exactly 0). Thanks Simon and Sabine!
1 parent 4b3f6ce commit cd1947f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: ProFound
22
Type: Package
33
Title: Photometry Tools
4-
Version: 1.24.2
5-
Date: 2024-11-28
4+
Version: 1.24.3
5+
Date: 2025-04-10
66
Author: Aaron Robotham
77
Maintainer: Aaron Robotham <aaron.robotham@uwa.edu.au>
88
Description: Core package containing all the tools for simple and advanced source extraction. This is used to create inputs for 'ProFit', or for source detection, extraction and photometry in its own right.

R/profoundSegim.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -826,8 +826,8 @@ profoundSegimStats=function(image=NULL, segim=NULL, mask=NULL, sky=NULL, skyRMS=
826826
mag_app = profoundFlux2Mag(flux = fluxout$flux_app, magzero = magzero)
827827

828828
if(any(fluxout$flux==0, na.rm=TRUE)){
829-
fluxout$N50seg[fluxout$flux==0]=fluxout$N100seg[fluxout$flux==0]
830-
fluxout$N90seg[fluxout$flux==0]=fluxout$N100seg[fluxout$flux==0]
829+
fluxout$N50seg[which(fluxout$flux==0)]=fluxout$N100seg[which(fluxout$flux==0)]
830+
fluxout$N90seg[which(fluxout$flux==0)]=fluxout$N100seg[which(fluxout$flux==0)]
831831
}
832832

833833
if(hassky){

0 commit comments

Comments
 (0)