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
3860a0f7
Commit
3860a0f7
authored
May 07, 2014
by
Médéric Boquien
Browse files
Clarify some comments.
parent
9bf2d35d
Changes
1
Hide whitespace changes
Inline
Side-by-side
pcigale/analysis_modules/pdf_analysis/workers.py
View file @
3860a0f7
...
@@ -210,8 +210,8 @@ def analysis(idx, obs):
...
@@ -210,8 +210,8 @@ def analysis(idx, obs):
global
gbl_mod_fluxes
,
gbl_obs_fluxes
,
gbl_obs_errors
global
gbl_mod_fluxes
,
gbl_obs_fluxes
,
gbl_obs_errors
# We pick
up
the models with closest redshift assuming we have
limited
# We pick
the indices of
the models with closest redshift assuming we have
# the number of decimals (usually set to 2 decimals).
#
limited
the number of decimals (usually set to 2 decimals).
w
=
np
.
where
(
gbl_w_redshifts
[
gbl_redshifts
[
np
.
abs
(
obs
[
'redshift'
]
-
w
=
np
.
where
(
gbl_w_redshifts
[
gbl_redshifts
[
np
.
abs
(
obs
[
'redshift'
]
-
gbl_redshifts
).
argmin
()]])
gbl_redshifts
).
argmin
()]])
...
@@ -344,7 +344,7 @@ def analysis(idx, obs):
...
@@ -344,7 +344,7 @@ def analysis(idx, obs):
for
i
,
val
in
enumerate
(
analysed_averages
):
for
i
,
val
in
enumerate
(
analysed_averages
):
pdf_binsize
[
i
]
=
FDbinSize
(
model_variables
[:,
i
])
pdf_binsize
[
i
]
=
FDbinSize
(
model_variables
[:,
i
])
if
pdf_binsize
[
i
]
==
0.
:
if
pdf_binsize
[
i
]
==
0.
:
#
if only 1 bin, we cheat to have 1 point in the histogram
#
If there is only one value, then the histogram has only one bin
min_hist
[
i
]
=
min
(
model_variables
[:,
i
])
min_hist
[
i
]
=
min
(
model_variables
[:,
i
])
max_hist
[
i
]
=
min_hist
[
i
]
max_hist
[
i
]
=
min_hist
[
i
]
pdf_binsize
[
i
]
=
1.
pdf_binsize
[
i
]
=
1.
...
...
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