Commit ba4a5462 authored by Médéric Boquien's avatar Médéric Boquien

With the new sanity check of the input parameters, cigale did not handle the...

With the new sanity check of the input parameters, cigale did not handle the fact that the redshift could be given in the parameters file. Now this is handled properly.
parent df8adab2
......@@ -4,6 +4,8 @@
### Added
### Changed
### Fixed
- With the new sanity check of the input parameters, cigale did not handle the fact that the redshift could be given in the parameters file. Now this is handled properly. (Médéric Boquien)
### Optimised
- A significant fraction of the total run time is spent computing integrals (e.g. fluxes in passbands). We can make the integration faster by rewriting the trapezoidal rule in terms of np.dot(). This allows to offload the computation to optimised libraries. The end result is that the integration is twice as fast, with a gain of ~10-15% on the total run time. (Médéric Boquien)
......
......@@ -287,6 +287,9 @@ class Configuration(object):
z = list(np.unique(np.around(obs_table['redshift'],
decimals=REDSHIFT_DECIMALS)))
self.config['sed_modules_params']['redshifting']['redshift'] = z
elif self.config['parameters_file']:
# The entry will be ignored anyway. Just pass a dummy list
self.config['sed_modules_params']['redshifting']['redshift'] = []
else:
raise Exception("No flux file and no redshift indicated. "
"The spectra cannot be computed. Aborting.")
......
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