def test_get_parbounds(self): from spotpy.examples.spot_setup_ackley import spot_setup as sp_ackley sp_ackley = sp_ackley() get_parbounds = spotpy.analyser.get_parbounds(spotpy_setup=sp_ackley) self.assertEqual(len(get_parbounds[0]), 2) self.assertEqual(len(get_parbounds), 30) self.assertEqual(type(get_parbounds), type([]))
def test_get_min_max(self): from spotpy.examples.spot_setup_ackley import spot_setup as sp_ackley sp_ackley = sp_ackley() get_min_max = spotpy.analyser.get_min_max(spotpy_setup=sp_ackley) self.assertEqual(len(get_min_max[0]), 30) self.assertEqual(type(get_min_max), type(()))