From 0d3a4b6195fa9dbafa62b839ae58efc4578e1882 Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Sun, 1 Nov 2015 21:29:51 +0100 Subject: [PATCH] Check parameter --- python/_cosmo_power.pyx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/_cosmo_power.pyx b/python/_cosmo_power.pyx index b417bd9..47e7bab 100644 --- a/python/_cosmo_power.pyx +++ b/python/_cosmo_power.pyx @@ -116,6 +116,8 @@ cdef class CosmologyPower: f = POWER_SUGIYAMA elif funcname=='HU_WIGGLES_ORIGINAL': f = HU_WIGGLES_ORIGINAL + else: + raise ValueError("Unknown function name " + funcname) self.power.setFunction(f)