Check parameter

This commit is contained in:
Guilhem Lavaux 2015-11-01 21:29:51 +01:00
parent da01fc87b6
commit 0d3a4b6195

View File

@ -116,6 +116,8 @@ cdef class CosmologyPower:
f = POWER_SUGIYAMA f = POWER_SUGIYAMA
elif funcname=='HU_WIGGLES_ORIGINAL': elif funcname=='HU_WIGGLES_ORIGINAL':
f = HU_WIGGLES_ORIGINAL f = HU_WIGGLES_ORIGINAL
else:
raise ValueError("Unknown function name " + funcname)
self.power.setFunction(f) self.power.setFunction(f)