Commit 202de4ab authored by Médéric Boquien's avatar Médéric Boquien
Browse files

Sort in place to avoid an unnecessary copy.

parent a0545b5e
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment