Skip to content
GitLab
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
768ffa71
Commit
768ffa71
authored
Mar 30, 2018
by
Médéric Boquien
Browse files
Set the comparison constant to the right type to avoid a useless conversion.
parent
021e2d75
Changes
1
Hide whitespace changes
Inline
Side-by-side
pcigale/managers/observations.py
View file @
768ffa71
...
...
@@ -300,7 +300,7 @@ class Observation(object):
else
:
if
self
.
redshift
==
0.
:
self
.
distance
=
10.
*
parsec
elif
self
.
redshift
>
0
:
elif
self
.
redshift
>
0
.
:
self
.
distance
=
cosmo
.
luminosity_distance
(
self
.
redshift
).
value
else
:
self
.
distance
=
np
.
nan
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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