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
f452ec52
Commit
f452ec52
authored
Mar 01, 2018
by
Médéric Boquien
Browse files
Merge branch 'develop' into 'develop'
Make possible to use a module after redshifting See merge request
!1
parents
6a53d6c5
30f7bb81
Changes
1
Hide whitespace changes
Inline
Side-by-side
pcigale/analysis_modules/pdf_analysis/workers.py
View file @
f452ec52
...
@@ -252,7 +252,7 @@ def bestfit(oidx, obs):
...
@@ -252,7 +252,7 @@ def bestfit(oidx, obs):
# difference between the object and the grid redshifts.
# difference between the object and the grid redshifts.
params
=
deepcopy
(
gbl_params
.
from_index
(
best_index
))
params
=
deepcopy
(
gbl_params
.
from_index
(
best_index
))
if
obs
.
redshift
>=
0.
:
if
obs
.
redshift
>=
0.
:
params
[
-
1
][
'redshift'
]
=
obs
.
redshift
params
[
gbl_params
.
modules
.
index
(
'redshifting'
)
][
'redshift'
]
=
obs
.
redshift
sed
=
gbl_warehouse
.
get_sed
(
gbl_params
.
modules
,
params
)
sed
=
gbl_warehouse
.
get_sed
(
gbl_params
.
modules
,
params
)
fluxes
=
np
.
array
([
sed
.
compute_fnu
(
filt
)
for
filt
in
gbl_obs
.
bands
])
fluxes
=
np
.
array
([
sed
.
compute_fnu
(
filt
)
for
filt
in
gbl_obs
.
bands
])
...
...
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