From c40ce33b3baf0809823bad339abb895eedff5835 Mon Sep 17 00:00:00 2001 From: Christian Ludwig Date: Sat, 30 Sep 2023 22:27:03 +0100 Subject: [PATCH] fixed phase3 test --- tests/test_nmrData.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_nmrData.py b/tests/test_nmrData.py index f78398f..1c3854f 100644 --- a/tests/test_nmrData.py +++ b/tests/test_nmrData.py @@ -16,6 +16,7 @@ import numpy as np from metabolabpy.nmr import nmrData from metabolabpy.nmr import nmrDataSet +from metabolabpy.nmr.phase3 import * import pandas as pd class nmrDataTestCase(unittest.TestCase): @@ -289,7 +290,7 @@ def test_phase3(self): nd.data_set_number = e_name nd.read_spc() s1 = np.copy(nd.spc[0].real) - s2 = nd.phase3(nd.spc[0], 360.0, 0.0, len(nd.spc[0])) + s2 = phase3(nd.spc[0], 360.0, 0.0, len(nd.spc[0])) s2 = s2.real self.assertAlmostEqual(np.sum(s1 - s2), 0.0, 4)