Skip to content

Commit

Permalink
fixed phase3 test
Browse files Browse the repository at this point in the history
  • Loading branch information
ludwigc committed Sep 30, 2023
1 parent 445cb47 commit c40ce33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_nmrData.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit c40ce33

Please sign in to comment.