Browse Source

version bump

tags/1.6.1
Trevor Irons 5 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
     # VERY Simple DOI #
137
     # VERY Simple DOI #
138
     maxq = np.argmax(K0, axis=1)
138
     maxq = np.argmax(K0, axis=1)
139
     maxK = .1 *  K0[ np.arange(0,len(ifaces)-1), maxq ] # 10% water is arbitrary  
139
     maxK = .1 *  K0[ np.arange(0,len(ifaces)-1), maxq ] # 10% water is arbitrary  
140
-    
141
     SNR = maxK / (VS[0][0])
140
     SNR = maxK / (VS[0][0])
141
+
142
     #SNR[SNR>1] = 1
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
         SNRidx -= 1
145
         SNRidx -= 1
146
 
146
 
147
     #print("IDX", SNRidx)
147
     #print("IDX", SNRidx)

+ 1
- 1
setup.py View File

21
     long_description = fh.read()
21
     long_description = fh.read()
22
 
22
 
23
 setup(name='Akvo',
23
 setup(name='Akvo',
24
-      version='1.4.5',
24
+      version='1.4.6',
25
       python_requires='>3.7.0', # due to pyLemma
25
       python_requires='>3.7.0', # due to pyLemma
26
       description='Surface nuclear magnetic resonance workbench',
26
       description='Surface nuclear magnetic resonance workbench',
27
       long_description=long_description,
27
       long_description=long_description,

Loading…
Cancel
Save