Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cigale
CIGALE
Commits
1bcf2c88
Commit
1bcf2c88
authored
Apr 01, 2018
by
Médéric Boquien
Browse files
Extensive properties should also be taken into account when correcting the χ² for upper limits.
parent
7a90054b
Changes
1
Hide whitespace changes
Inline
Side-by-side
pcigale/analysis_modules/pdf_analysis/utils.py
View file @
1bcf2c88
...
...
@@ -246,6 +246,12 @@ def compute_chi2(models, obs, corr_dz, wz, lim_flag):
(
1.
+
erf
(((
obs
.
flux_ul
[
band
]
-
model
*
scaling
)
/
(
-
np
.
sqrt
(
2.
)
*
obs_error
)))))
for
band
,
obs_error
in
obs
.
extprop_ul_err
.
items
():
model
=
models
.
extprop
[
band
][
wz
]
chi2
-=
2.
*
np
.
log
(.
5
*
(
1.
+
erf
(((
obs
.
extprop_ul
[
band
]
-
model
*
scaling
)
/
(
-
np
.
sqrt
(
2.
)
*
obs_error
)))))
return
chi2
,
scaling
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment