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
fda2ce6e
Commit
fda2ce6e
authored
Feb 27, 2018
by
Hector Salas
Browse files
Modify generate_mock function in observations.py to correctly include properties to fit
parent
8efe6ba5
Changes
1
Hide whitespace changes
Inline
Side-by-side
pcigale/managers/observations.py
View file @
fda2ce6e
...
...
@@ -235,9 +235,17 @@ class ObservationsManagerPassbands(object):
Best fit fluxes of a previous run.
"""
for
idx
,
item
in
enumerate
(
self
.
tofit
):
err
=
item
+
'_err'
self
.
table
[
item
]
=
np
.
random
.
normal
(
fits
.
best
.
fluxes
[:,
idx
],
for
idx
,
band
in
enumerate
(
self
.
bands
):
err
=
band
+
'_err'
self
.
table
[
band
]
=
np
.
random
.
normal
(
fits
.
best
.
fluxes
[:,
idx
],
np
.
fabs
(
self
.
table
[
err
]))
for
idx
,
prop
in
enumerate
(
self
.
intprops
):
err
=
prop
+
'_err'
self
.
table
[
prop
]
=
np
.
random
.
normal
(
fits
.
best
.
intprops
[:,
idx
],
np
.
fabs
(
self
.
table
[
err
]))
for
idx
,
prop
in
enumerate
(
self
.
extprops
):
err
=
prop
+
'_err'
self
.
table
[
prop
]
=
np
.
random
.
normal
(
fits
.
best
.
extprops
[:,
idx
],
np
.
fabs
(
self
.
table
[
err
]))
def
save
(
self
,
filename
):
...
...
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