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
0967f500
Commit
0967f500
authored
Feb 21, 2018
by
Hector Salas
Browse files
modify results.py to include the properties
parent
c620bb2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
pcigale/managers/results.py
View file @
0967f500
...
...
@@ -221,7 +221,7 @@ class BestResultsManager(object):
objects seems to be overconstrainted.
"""
obs
=
[
self
.
obs
.
table
[
obs
].
data
for
obs
in
self
.
obs
.
bands
]
obs
=
[
self
.
obs
.
table
[
obs
].
data
for
obs
in
self
.
obs
.
tofit
]
nobs
=
np
.
count_nonzero
(
np
.
isfinite
(
obs
),
axis
=
0
)
chi2_red
=
self
.
chi2
/
(
nobs
-
1
)
# If low values of reduced chi^2, it means that the data are overfitted
...
...
@@ -287,7 +287,7 @@ class ResultsManager(object):
name
=
"bayes."
+
name
+
"_err"
))
table
.
add_column
(
Column
(
self
.
best
.
chi2
,
name
=
"best.chi_square"
))
obs
=
[
self
.
obs
.
table
[
obs
].
data
for
obs
in
self
.
obs
.
bands
]
obs
=
[
self
.
obs
.
table
[
obs
].
data
for
obs
in
self
.
obs
.
tofit
]
nobs
=
np
.
count_nonzero
(
np
.
isfinite
(
obs
),
axis
=
0
)
table
.
add_column
(
Column
(
self
.
best
.
chi2
/
(
nobs
-
1
),
name
=
"best.reduced_chi_square"
))
...
...
Write
Preview
Supports
Markdown
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