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

PEP8-fication.

parent 211f2cc1
......@@ -121,7 +121,7 @@ class PdfAnalysis(AnalysisModule):
# Initalise variables from input arguments.
analysed_variables = config["analysed_variables"]
n_variables = len(analysed_variables)
save = {key:config["save_{}".format(key)].lower() == "true"
save = {key: config["save_{}".format(key)].lower() == "true"
for key in ["best_sed", "chi2", "pdf"]}
lim_flag = config["lim_flag"].lower() == "true"
......@@ -197,11 +197,11 @@ class PdfAnalysis(AnalysisModule):
# We use RawArrays for the same reason as previously
analysed_averages = (RawArray(ctypes.c_double, n_obs * n_variables),
(n_obs, n_variables))
(n_obs, n_variables))
analysed_std = (RawArray(ctypes.c_double, n_obs * n_variables),
(n_obs, n_variables))
(n_obs, n_variables))
best_fluxes = (RawArray(ctypes.c_double, n_obs * n_filters),
(n_obs, n_filters))
(n_obs, n_filters))
best_parameters = (RawArray(ctypes.c_double, n_obs * n_info),
(n_obs, n_info))
best_chi2 = (RawArray(ctypes.c_double, n_obs), (n_obs))
......
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