Browse Source

version bump

tags/1.6.1
Trevor Irons 4 years ago
parent
commit
561bce557f
2 changed files with 4 additions and 4 deletions
  1. 3
    3
      akvo/tressel/invertTA.py
  2. 1
    1
      setup.py

+ 3
- 3
akvo/tressel/invertTA.py View File

@@ -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 View File

@@ -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…
Cancel
Save