Commit 046142bf authored by Theo Steininger's avatar Theo Steininger
Browse files

Included a warning if nbin is set to higher value than length of kindex.

parent fcb7e1f9
Pipeline #12554 passed with stages
in 13 minutes and 2 seconds
......@@ -114,6 +114,11 @@ class PowerSpace(Space):
self._pundex = power_index['pundex']
self._k_array = power_index['k_array']
if self.config['nbin'] is not None:
if self.config['nbin'] > len(self.kindex):
self.logger.warn("nbin was set to a value being larger than "
"the length of kindex!")
def pre_cast(self, x, axes):
""" Casts power spectrum functions to discretized power spectra.
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