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
f384e58d
Commit
f384e58d
authored
Aug 21, 2014
by
Médéric Boquien
Browse files
Minor optimisation. Avoid accessing the object member by using the already present local variable.
parent
389fc091
Changes
1
Hide whitespace changes
Inline
Side-by-side
pcigale/sed/__init__.py
View file @
f384e58d
...
...
@@ -324,8 +324,8 @@ class SED(object):
l_lambda
=
self
.
luminosity
# Test if the spectrum cover all the filter extend
if
((
np
.
min
(
self
.
wavelength
_grid
)
>
lambda_min
)
or
(
np
.
max
(
self
.
wavelength
_grid
)
<
lambda_max
)):
if
((
np
.
min
(
wavelength
)
>
lambda_min
)
or
(
np
.
max
(
wavelength
)
<
lambda_max
)):
f_nu
=
-
99.
else
:
...
...
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