def test_function_output(self): input = [0.0, 4.0, 8.0, 12.0] expected = [0.2, -0.05237002010607009, 0.061888393844228465, -0.03887640266005458] tolerance = 1.0e-05 status, output = check_output("DampedBessel", input, expected, tolerance, A0 = 0.2, Field = 10, Phi = 0.0, LambdaL = 0.1, LambdaT = 0.1, FractionL = 0.1) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(i) for i in (output, input, expected)]))
def test_function_output(self): input = [0.0, 4.0, 8.0, 12.0] expected = [0.5, 0.0920992725837422, 0.0023798684614228663, 0.0007490849206591537] tolerance = 1.0e-05 status, output = check_output("Meier", input, expected, tolerance, A0 = 0.5, FreqD = 0.01, FreqQ = 0.05, Spin = 3.5, Lambda = 0.1, Sigma = 0.2) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(i) for i in (output, input, expected)]))
def test_function_output(self): input = [0.0, 4.0, 8.0, 12.0] expected = [0.2, 0.10281126383999335, 0.040443637458894455, 0.04432928908924867] tolerance = 1.0e-06 status, output = check_output("GauBroadGauKT", input, expected, tolerance, A0 = 0.2, R = 0.4, Delta0 = 0.2) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(i) for i in (output, input, expected)]))
def test_function_output(self): input = [0.0, 4.0, 8.0, 12.0] expected = [0.5, 0.0952763357925375, 0.07759950963650783, 0.16055187475842644] tolerance = 1.0e-05 status, output = check_output("StretchedKT", input, expected, tolerance, A0 = 0.5, Beta = 2, Sigma = 0.3) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(i) for i in (output, input, expected)]))
def test_function_output(self): input = [0.0, 4.0, 8.0, 12.0] expected = [0.09900249722395764, -0.010116392139648565, -0.024891569859118595, -0.006976567202361606] tolerance = 1.0e-05 status, output = check_output("Bessel", input, expected, tolerance, A0=0.1, Phi=0.2, Nu=0.2) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(i) for i in (output, input, expected)]))
def test_function_output(self): input = [0.0, 4.0, 8.0, 12.0] expected = [0.1, 0.0712612914963677, 0.017050049143532732, -0.0028172712603769523] tolerance = 1.0e-05 status, output = check_output("HighTFMuonium", input, expected, tolerance, A0 = 0.1, Field =100, Freq = 0.2, Phi = 0.0) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(i) for i in (output, input, expected)]))
def test_function_output(self): input = [0.0, 4.0, 8.0, 12.0] expected = [0.5, 0.16017663658720036, 0.06838823307044849, 0.13307716823662552] tolerance = 1.0e-05 status, output = check_output("CombGaussLorentzKT", input, expected, tolerance, A0 = 0.5, Lambda = 0.1, Sigma = 0.2) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(i) for i in (output, input, expected)]))
def test_function_output(self): input = [0.0, 4.0, 8.0, 12.0] expected = [0.5, 0.12404101755414361, 0.040649467437777045, 0.0034489777749940457] tolerance = 1.0e-05 status, output = check_output("FmuF", input, expected, tolerance, A0 = 0.5, FreqD = 0.2, Lambda = 0.1, Sigma = 0.2) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(i) for i in (output, input, expected)]))
def test_function_output(self): input = [0.0, 4.0, 8.0, 12.0] expected = [0.15163664420855247, -0.05429533841911648, -0.021522983685159713, -0.02152298368515976] tolerance = 1.0e-05 status, output = check_output("ZFMuonium", input, expected, tolerance, A0 = 0.2, FreqA = 0.3, FreqD = 0.2, FCut = 1.0,Phi = 0.0) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(i) for i in (output, input, expected)]))
def test_function_output(self): input = [0.0, 4.0, 8.0, 12.0] expected = [0.933962026044940,0.0630575696651452, -0.141595984565378, -0.00124998969353344] tolerance = 1.0e-05 status, output = check_output("ModOsc", input, expected, tolerance, A0=1.0, Freq=0.1, ModFreq=0.2, Phi=0.3) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(i) for i in (output, input, expected)]))
def test_function_output(self): input = [0.0, 4.0, 8.0, 12.0] expected = [0.5, -0.1914750940878983, -0.035012377199990896, -0.25247832461184805] tolerance = 1.0e-05 status, output = check_output("TFMuonium", input, expected, tolerance, A0 = 0.5, Field = 5, A = 600, Phi = 0.0) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(i) for i in (output, input, expected)]))
def test_function_output(self): input = np.array([[0, 1], [2, 3]]) expected = np.array([[1., 0.99173554], [0.96774194, 0.93023256]]) tolerance = 0.000001 status, output = check_output("MsdPeters", input, expected, tolerance, Height=1.0, MSD=0.05, Beta=1.0) if not status: self.fail("Computed output " + str(output) + " from input " + str(input) + " is not equal to the expected output: " + str(expected))
def test_function_output(self): input = np.array([[0, 1], [2, 3]]) expected = np.array([[1., 0.95122942], [0.81873075, 0.63762815]]) tolerance = 0.000001 status, output = check_output("MsdGauss", input, expected, tolerance, Height=1.0, Msd=0.05) if not status: self.fail("Computed output " + str(output) + " from input " + str(input) + " is not equal to the expected output: " + str(expected))
def test_function_output(self): input = [0.0, 4.0, 8.0, 12.0] expected = [0.2, -0.0056741013552220505, 0.07815781455649527, 0.06614287546076084] tolerance = 1.0e-05 status, output = check_output("CompositePCRmagnet", input, expected, tolerance, A0 = 0.2, KTdelta = 0.1, B0 = 10.0, Gauss = 0.2) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(i) for i in (output, input, expected)]))
def test_function_output(self): input = [0.0, 4.0, 8.0, 12.0] expected = [0.2, 0.015066266766824094, 0.04206038804127508, 0.1938030263224746] tolerance = 1.0e-05 status, output = check_output("AFMLF", input, expected, tolerance, A0 = 0.2, Freq = 2, Angle = 50, Field = 10, Phi = 0.0) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(i) for i in (output, input, expected)]))
def test_function_output(self): input = np.array([[1, 2], [3, 4]]) expected = np.array([[0.03616947, 0.53117559], [1.46726692, 3.69882113]]) tolerance = 0.000001 status, output = check_output("MsdYi", input, expected, tolerance, Height=1.0, MSD=0.05, Sigma=1.0) if not status: self.fail("Computed output " + str(output) + " from input " + str(input) + " is not equal to the expected output: " + str(expected))
def test_function_output(self): input = np.array([[0, 1], [2, 3]]) expected = np.array([[1., 0.95122942], [0.81873075, 0.63762815]]) tolerance = 0.000001 status, output = check_output("MsdGauss", input, expected, tolerance, Height=1.0, MSD=0.05) if not status: self.fail("Computed output " + str(output) + " from input " + str(input) + " is not equal to the expected output: " + str(expected))
def test_function_output(self): input = [0.01, 0.1, 1.0, 10.0] expected = [9.9364527e-01, 9.7341655e-01, 9.6591907e-02, 3.9967863e-06] tolerance = 1.0e-05 status, output = check_output('EISFDiffCylinder', input, expected, tolerance, A=1.0, R=3.5) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(a) for a in (output, input, expected)]))
def test_function_output(self): input = [0.0, 4.0, 8.0, 12.0] expected = [0.19995605541611614, 0.13875659828108097, 0.010139054289586492, -0.059990825005624] tolerance = 1.0e-05 status, output = check_output("PCRmagnetfnorm", input, expected, tolerance, A0 = 0.2, SigmaOverW = 0.1, H0 = 3.0, Toff = 0.1) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(i) for i in (output, input, expected)]))
def test_function_output(self): input = np.array([[0, 1], [2, 3]]) expected = np.array([[1., 0.99173554], [0.96774194, 0.93023256]]) tolerance = 0.000001 status, output = check_output("MsdPeters", input, expected, tolerance, Height=1.0, Msd=0.05, Beta=1.0) if not status: self.fail("Computed output " + str(output) + " from input " + str(input) + " is not equal to the expected output: " + str(expected))
def test_function_output(self): input = np.array([[0, 1], [2, 3]]) expected = np.array([[1., 0.99170129], [0.9672161, 0.92774349]]) tolerance = 0.000001 status, output = check_output("MsdGauss", input, expected, tolerance, Height=1.0, Msd=0.05) if not status: self.fail("Computed output " + str(output) + " from input " + str(input) + " is not equal to the expected output: " + str(expected))
def test_function_output(self): input = [0.0, 4.0, 8.0, 12.0] expected = [0.2, 0.07812243345468936, 0.05832788683141682, 0.06434817483220028] tolerance = 1.0e-05 status, output = check_output("PCRmagRedfield", input, expected, tolerance, A0=0.2, Delta=0.2, Nu=0.1) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(i) for i in (output, input, expected)]))
def test_function_output(self): input = [0.01, 0.1, 1.0, 10.0] expected = [[0.99960073, 0.96138418, 0.47836973, 0.00162784]] tolerance = 1.0e-05 status, output = check_output('EISFDiffSphereAlkyl', input, expected, tolerance, A=1.0, Rmin=0.5, Rmax=6.3) if not status: self.fail("Computed output " + str(output) + " from input " + str(input) + " is not equal to the expected output: " + str(expected))
def test_function_output(self): input = [0.01, 0.1, 1.0, 10.0] expected = [9.9975503e-01, 9.7575570e-01, 4.1939654e-02, 4.7662027e-06] tolerance = 1.0e-05 status, output = check_output("EISFDiffSphere", input, expected, tolerance, A=1.0, R=3.5) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(a) for a in (output, input, expected)]))
def test_function_output(self): input = [0.01, 0.1, 1.0, 10.0] expected = [2.46820217e-05, 2.45907320e-03, 1.79512344e-01, 6.41115514e-01] tolerance = 1.0e-05 status, output = check_output("TeixeiraWater", input, expected, tolerance, Tau=1.0, L=1.5) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(a) for a in (output, input, expected)]))
def test_function_output(self): input = np.linspace(0, 1000, 4) # Between 0-1000 Gauss expected = [0.91847597, 0.76278678, 0.5056509, 0.3237545] tolerance = 1.0e-05 function_params = {"A0": 10, "Hloc": 50, "Tau": 0.1} status, output = check_output("Redfield", input, expected, tolerance, **function_params) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(i) for i in (output, input, expected)]))
def test_function_output(self): input = [0.01, 0.1, 1.0, 10.0] expected = [4.52422472e-05, 4.51112743e-03, 3.37001059e-01, 4.78915177e-01] tolerance = 1.0e-04 status, output = check_output("ChudleyElliot", input, expected, tolerance, Tau=1.42, L=2.42) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(a) for a in (output, input, expected)]))
def test_function_output(self): input = [0.01, 0.1, 1.0, 10.0] expected = [2.46820217e-05, 2.45907320e-03, 1.79512344e-01, 6.41115514e-01] tolerance = 1.0e-05 status, output = check_output("TeixeiraWater", input, expected, tolerance, Tau=1.0, L=1.5) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(a) for a in (output, input, expected)]))
def test_function_output(self): input = np.array([[1, 2], [3, 4]]) expected = np.array( [[1.00547492, 1.18215301], [1.97145491, 3.98690068]]) tolerance = 0.000001 status, output = check_output( "MsdYi", input, expected, tolerance, Height=1.0, Msd=0.05, Sigma=1.0) if not status: self.fail("Computed output " + str(output) + " from input " + str(input) + " is not equal to the expected output: " + str(expected))
def test_function_output(self): input = [0.01, 0.1, 1.0, 10.0] expected = [9.9975503e-01, 9.7575570e-01, 4.1939654e-02, 4.7662027e-06] tolerance = 1.0e-05 status, output = check_output("EISFDiffSphere", input, expected, tolerance, A=1.0, R=3.5) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(a) for a in (output, input, expected)]))
def test_function_output(self): input = [0.01, 0.1, 1.0, 10.0] expected = [9.9364527e-01, 9.7341655e-01, 9.6591907e-02, 3.9967863e-06] tolerance = 1.0e-05 status, output = check_output('EISFDiffCylinder', input, expected, tolerance, A=1.0, R=3.5) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(a) for a in (output, input, expected)]))
def test_function_output(self): input = [0.0, 4.0, 8.0, 12.0] expected = [0.2, 0.0875285, 0.0997056, 0.100168] tolerance = 1.0e-05 status, output = check_output("StaticLorentzianKT", input, expected, tolerance, A0=0.2, A=1, Field=1) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(i) for i in (output, input, expected)]))
def test_function_output(self): input = [0.0, 3.9, 7.8, 11.7, 15.6] expected = [0.0, -0.2, -0.4, -0.4, -0.2] tolerance = 0.0 status, output = check_output("TriangleOsc", input, expected, tolerance, A0=0.5, Freq=1, Phi=0.0) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(i) for i in (output, input, expected)]))
def test_function_output(self): input = [0.0, 4.0, 8.0, 12.0] expected = [ 0.1, 0.09940179640539354, 0.09880717128619305, 0.09821610323583008 ] tolerance = 1.0e-05 status, output = check_output("SilverBaseline", input, expected, tolerance, A0=0.1) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(i) for i in (output, input, expected)]))
def test_function_output(self): input = [0.01, 0.1, 1.0, 10.0] expected = [[0.99960073, 0.96138418, 0.47836973, 0.00162784]] tolerance = 1.0e-05 status, output = check_output('EISFDiffSphereAlkyl', input, expected, tolerance, A=1.0, Rmin=0.5, Rmax=6.3) if not status: self.fail("Computed output " + str(output) + " from input " + str(input) + " is not equal to the expected output: " + str(expected))
def test_function_output(self): input = [0.01, 0.1, 1.0, 10.0] expected = [ 4.52422472e-05, 4.51112743e-03, 3.37001059e-01, 4.78915177e-01 ] tolerance = 1.0e-04 status, output = check_output("ChudleyElliot", input, expected, tolerance, Tau=1.42, L=2.42) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(a) for a in (output, input, expected)]))
def test_function_output(self): input = [0.0, 4.0, 8.0, 12.0] expected = [0.2, 0.13141574, 0.10470049, 0.0851287] tolerance = 1.0e-05 status, output = check_output("SpinGlass", input, expected, tolerance, A0=0.2, Width=0.1, Nu=1, Q=0.1) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(i) for i in (output, input, expected)]))
def test_function_output(self): input = [0.0, 4.0, 8.0, 12.0] expected = [ 0.2, 0.10553037744199503, 0.09243960178747213, 0.09990230524469997 ] tolerance = 1.0e-05 status, output = check_output("RFresonance", input, expected, tolerance, A0=0.2, Boffset=10, B1=10, B1GauWidth=0.2) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(i) for i in (output, input, expected)]))
def test_function_output(self): input = [0.0, 4.0, 8.0, 12.0] expected = [0.6, -0.43265208, 0.15521027, 0.0046213] tolerance = 1.0e-05 status, output = check_output("StandardSC", input, expected, tolerance, A0=0.5, FieldSC=10, FieldBG=11, Phi=0.0, Sigma=0.2, Abg=0.1) if not status: msg = 'Computed output {} from input {} unequal to expected: {}' self.fail(msg.format(*[str(i) for i in (output, input, expected)]))