Fixes errors in displaying correct xlabel and calucalte ppm properly

This commit is contained in:
Markus Rosenstihl 2018-12-12 10:56:32 +01:00
parent dc7099d731
commit 8cee6b86a0
4 changed files with 6 additions and 6 deletions

3
README
View File

@ -1,6 +1,3 @@
Installing into private directory
=================================

View File

@ -233,5 +233,6 @@ class DamarisFFT:
:param f_ref: larmor frequency in Hz
:return:
"""
self.y /= f_ref*1e6
self.x /= f_ref*1e6
self.set_xlabel( "PPM" )
return self

View File

@ -7,5 +7,5 @@ def test():
return e
def experiment():
for i in range(1000):
for i in range(100):
yield test()

View File

@ -1,4 +1,6 @@
def result():
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