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
202de4ab
Commit
202de4ab
authored
Mar 29, 2014
by
Médéric Boquien
Browse files
Sort in place to avoid an unnecessary copy.
parent
a0545b5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
pcigale/creation_modules/nebular.py
View file @
202de4ab
...
...
@@ -101,7 +101,7 @@ class NebularEmission(CreationModule):
+
3.
*
width
,
19
)))
new_wave
=
np
.
sort
(
new_wave
)
new_wave
.
sort
()
new_flux
=
np
.
zeros_like
(
new_wave
)
for
line_flux
,
line_wave
in
zip
(
lines
.
ratio
,
lines
.
wave
):
width
=
line_wave
*
lines_width
/
cst
.
c
...
...
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