Skip to content

Commit e007050

Browse files
authored
Merge pull request #157 from transientskp/Fix_71
Full propagation of conf objects.
2 parents 868aae3 + a321ba0 commit e007050

File tree

12 files changed

+486
-377
lines changed

12 files changed

+486
-377
lines changed

.github/workflows/python-tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ jobs:
7474
hatch run +py=${{matrix.python-version}} test:pytest
7575
- name: Integration test
7676
run: |
77-
hatch run pyse --config-file test/data/config.toml --detection 5 --radius 400 --csv --force-beam test/data/GRB120422A-120429.fits
77+
hatch run pyse --config-file test/data/config.toml --detection_thr \
78+
5 --radius 400 --csv --force-beam test/data/GRB120422A-120429.fits
7879
7980
type-check:
8081
strategy:

sourcefinder/config.py

Lines changed: 69 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,14 +222,80 @@ class ImgConf(_Validate):
222222
223223
"""
224224

225-
detection: float = 10.0
225+
clean_bias: float = 0.0
226+
"""Clean bias to subtract from the peak brightnesses (Jy/beam), see
227+
parapagraph 5.2.5 and equation 34 of the NVSS paper.
228+
229+
"""
230+
231+
clean_bias_error: float = 0.0
232+
"""1-sigma uncertainty in clean bias (Jy/beam), see parapagraph 5.2.5 and
233+
equation 37 of the NVSS paper.
234+
235+
"""
236+
237+
frac_flux_cal_error: float = 0.0
238+
"""Intensity-proportional calibration uncertainty, see paragraph 5.2.5 and
239+
equation 37 of the NVSS paper.
240+
241+
"""
242+
243+
alpha_maj1: float = 2.5
244+
"""First exponent for scaling errors along the fitted major
245+
axis, see equation 26 and paragraph 5.2.3 of the NVSS paper and
246+
equation 41 and paragraph 3 of Condon's (1997) "Errors in Elliptical
247+
Gaussian Fits".
248+
249+
"""
250+
251+
alpha_maj2: float = 0.5
252+
"""Second exponent for scaling errors along the fitted major
253+
axis, see equation 26 and paragraph 5.2.3 of the NVSS paper and
254+
equation 41 and paragraph 3 of Condon's (1997) "Errors in Elliptical
255+
Gaussian Fits".
256+
257+
"""
258+
259+
alpha_min1: float = 0.5
260+
"""First exponent for scaling errors along the fitted minor
261+
axis and for scaling errors in the position angle, see equation 26 and
262+
paragraph 5.2.3 of the NVSS paper and equation 41 and paragraph 3 of
263+
Condon's (1997) "Errors in Elliptical Gaussian Fits".
264+
265+
"""
266+
267+
alpha_min2: float = 2.5
268+
"""Second exponent for scaling errors along the fitted minor
269+
axis and for scaling errors in the position angle, see equation 26 and
270+
paragraph 5.2.3 of the NVSS paper and equation 41 and paragraph 3 of
271+
Condon's (1997) "Errors in Elliptical Gaussian Fits".
272+
273+
"""
274+
275+
alpha_brightness1: float = 1.5
276+
"""First exponent for scaling errors in peak brightness, see
277+
equation 26 and paragraph 5.2.5 of the NVSS paper and equation 41
278+
and paragraph 3 of Condon's (1997) "Errors in Elliptical Gaussian
279+
Fits".
280+
281+
"""
282+
283+
alpha_brightness2: float = 1.5
284+
"""Second exponent for scaling errors in peak brightness, see
285+
equation 26 and paragraph 5.2.5 of the NVSS paper and equation 41
286+
and paragraph 3 of Condon's (1997) "Errors in Elliptical Gaussian
287+
Fits".
288+
289+
"""
290+
291+
detection_thr: float = 10.0
226292
"""Detection threshold as multiple of the background standard
227293
deviation (rms) map, after the background mean values have been
228294
subtracted from the image.
229295
230296
"""
231297

232-
analysis: float = 3.0
298+
analysis_thr: float = 3.0
233299
"""Analysis threshold as multiple of the background standard
234300
deviation (rms) map, after the background mean values have been
235301
subtracted from the image.
@@ -252,7 +318,7 @@ class ImgConf(_Validate):
252318
253319
"""
254320

255-
deblend_thresholds: int = 0
321+
deblend_nthresh: int = 0
256322
"""Number of deblending subthresholds; 0 to disable."""
257323

258324
grid: int | None = None

0 commit comments

Comments
 (0)