def test_buildEvalArgs_TDVCustomParm(self): tdv = _getTDVSpec('foo', self.evalFoo, reqTDV=['a'], parmtdv='footdv') fooargs = eg._buildEvalArgs(tdv, gibbsSp=None, MWv=None, MWu=None, PTM=None, gPTM=None, derivs=None, f=None, tdvout='foo') self.assertEqual(1, len(fooargs)) self.assertFalse('tdv' in fooargs) self.assertTrue(fooargs['footdv'] == 'foo')
def test_buildEvalArgs_FCustomParm(self): tdv = _getTDVSpec('foo', self.evalFoo, reqF=True, parmf='foof') fooargs = eg._buildEvalArgs(tdv, gibbsSp=None, MWv=None, MWu=None, PTM=None, gPTM=None, derivs=None, f='foo', tdvout=None) self.assertEqual(1, len(fooargs)) self.assertFalse('f' in fooargs) self.assertTrue(fooargs['foof'] == 'foo')
def test_buildEvalArgs_derivsCustomParm(self): tdv = _getTDVSpec('foo', self.evalFoo, reqDerivs=['d1P'], parmderivs='fooderivs') fooargs = eg._buildEvalArgs(tdv, gibbsSp=None, MWv=None, MWu=None, PTM=None, gPTM=None, derivs='foo', f=None, tdvout=None) self.assertEqual(1, len(fooargs)) self.assertFalse('derivs' in fooargs) self.assertTrue(fooargs['fooderivs'] == 'foo')