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

Tiny optimisation. Create arrays are empty rather than being zero-filled as we...

Tiny optimisation. Create arrays are empty rather than being zero-filled as we are going to assign all elements later on anyway.
parent 63455e66
......@@ -193,9 +193,9 @@ class PdfAnalysis(AnalysisModule):
# For convenience, the redshift of each model is stored in
# model_redshift.
model_fluxes = np.ma.zeros((len(creation_modules_params),
model_fluxes = np.ma.empty((len(creation_modules_params),
len(filters)))
model_variables = np.ma.zeros((len(creation_modules_params),
model_variables = np.ma.empty((len(creation_modules_params),
len(analysed_variables)))
model_redshift = np.empty(len(creation_modules_params))
......
Markdown is supported
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