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
d75715d4
Commit
d75715d4
authored
Feb 15, 2018
by
Médéric Boquien
Browse files
When a band is invalid, also set the error to NaN.
parent
03375155
Changes
1
Hide whitespace changes
Inline
Side-by-side
pcigale/managers/observations.py
View file @
d75715d4
...
...
@@ -142,6 +142,7 @@ class ObservationsManagerPassbands(object):
w
=
np
.
where
((
self
.
table
[
band
]
<
threshold
)
|
(
self
.
table
[
banderr
]
<
threshold
))
self
.
table
[
band
][
w
]
=
np
.
nan
self
.
table
[
banderr
][
w
]
=
np
.
nan
if
upperlimits
is
False
:
w
=
np
.
where
(
self
.
table
[
banderr
]
<=
0.
)
self
.
table
[
band
][
w
]
=
np
.
nan
...
...
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