瀏覽代碼

version bump

tags/1.6.1
Trevor Irons 5 年之前
父節點
當前提交
561bce557f
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 3
    3
      akvo/tressel/invertTA.py
  2. 1
    1
      setup.py

+ 3
- 3
akvo/tressel/invertTA.py 查看文件

@@ -137,11 +137,11 @@ def main():
137 137
     # VERY Simple DOI #
138 138
     maxq = np.argmax(K0, axis=1)
139 139
     maxK = .1 *  K0[ np.arange(0,len(ifaces)-1), maxq ] # 10% water is arbitrary  
140
-    
141 140
     SNR = maxK / (VS[0][0])
141
+
142 142
     #SNR[SNR>1] = 1
143
-    SNRidx = len(ifaces)-2 
144
-    while SNR[SNRidx] < 1:
143
+    SNRidx = len(ifaces)-3 
144
+    while SNR[SNRidx] > SNR[SNRidx+1] and SNRidx > 2:
145 145
         SNRidx -= 1
146 146
 
147 147
     #print("IDX", SNRidx)

+ 1
- 1
setup.py 查看文件

@@ -21,7 +21,7 @@ with open("README.md", "r") as fh:
21 21
     long_description = fh.read()
22 22
 
23 23
 setup(name='Akvo',
24
-      version='1.4.5',
24
+      version='1.4.6',
25 25
       python_requires='>3.7.0', # due to pyLemma
26 26
       description='Surface nuclear magnetic resonance workbench',
27 27
       long_description=long_description,

Loading…
取消
儲存