Fixes errors in displaying correct xlabel and calucalte ppm properly
This commit is contained in:
parent
dc7099d731
commit
8cee6b86a0
3
README
3
README
@ -1,6 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
Installing into private directory
|
Installing into private directory
|
||||||
=================================
|
=================================
|
||||||
|
|
||||||
|
@ -233,5 +233,6 @@ class DamarisFFT:
|
|||||||
:param f_ref: larmor frequency in Hz
|
:param f_ref: larmor frequency in Hz
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
self.y /= f_ref*1e6
|
self.x /= f_ref*1e6
|
||||||
|
self.set_xlabel( "PPM" )
|
||||||
return self
|
return self
|
@ -7,5 +7,5 @@ def test():
|
|||||||
return e
|
return e
|
||||||
|
|
||||||
def experiment():
|
def experiment():
|
||||||
for i in range(1000):
|
for i in range(100):
|
||||||
yield test()
|
yield test()
|
@ -1,4 +1,6 @@
|
|||||||
def result():
|
def result():
|
||||||
for num,ts in enumerate(results):
|
for num,ts in enumerate(results):
|
||||||
data["ts %i"%num] = ts
|
data["ts %i"%num] = ts+0
|
||||||
|
data["fft"] = (ts+0).fft()
|
||||||
|
data["ppm"] = (ts+0).fft().ppm(300e6)
|
||||||
#print ts
|
#print ts
|
Loading…
Reference in New Issue
Block a user