Skip to content

Commit e548476

Browse files
committed
update pearce
1 parent 80602e8 commit e548476

File tree

6 files changed

+47
-19
lines changed

6 files changed

+47
-19
lines changed

geopytool/CustomClass.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
version="0.9.21.0.003"
1+
version="0.9.21.0.004"
22

3-
date = '2021-01-21'
3+
date = '2021-03-17'
44

55
dpi = 128
66
# coding:utf-8

geopytool/MyGAN.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def Key_Func(self):
171171
if self._df.at[i, 'Label'] == k:
172172
# tmp_list.append(self._df.loc[i])
173173
tmp_list.append(self.result_to_fit.values[i])
174-
self.data_indexed_dict[k] = tmp_list
174+
# self.data_indexed_dict[k] = tmp_list
175175
self.data_indexed_dict[k]=tmp_list
176176

177177
tmp_data=pd.DataFrame(tmp_list)
@@ -205,7 +205,6 @@ def Set_Epochs_Number(self,text):
205205
#self.ErrorEvent(text=repr('Epochs must be larger than 1.'))
206206
except:
207207
pass
208-
209208
def Set_Batch_Size(self,text):
210209
try:
211210
self.batch_size= int(text)

geopytool/Pearce.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def create_main_frame(self):
158158

159159
self.resize(900, 900)
160160
self.main_frame = QWidget()
161-
self.dpi = 128
161+
self.dpi = 64
162162
self.fig ,self.axes= plt.subplots(2, 2,figsize=(16.0, 16.0),dpi=self.dpi)
163163
self.fig.subplots_adjust(hspace=0.5, wspace=0.5,left=0.1, bottom=0.2, right=0.8, top=0.9)
164164
self.canvas = FigureCanvas(self.fig)
@@ -583,22 +583,22 @@ def Pearce(self):
583583
for i in self.TagsA:
584584
self.axes[0,0].annotate(i.Label, xy=i.Location, xycoords='data', xytext=(i.X_offset, i.Y_offset),
585585
textcoords='offset points',
586-
fontsize=8, color='grey', alpha=0.8)
586+
fontsize=4, color='grey', alpha=0.8)
587587

588588
for i in self.TagsB:
589589
self.axes[0,1].annotate(i.Label, xy=i.Location, xycoords='data', xytext=(i.X_offset, i.Y_offset),
590590
textcoords='offset points',
591-
fontsize=8, color='grey', alpha=0.8)
591+
fontsize=4, color='grey', alpha=0.8)
592592

593593
for i in self.TagsC:
594594
self.axes[1,0].annotate(i.Label, xy=i.Location, xycoords='data', xytext=(i.X_offset, i.Y_offset),
595595
textcoords='offset points',
596-
fontsize=8, color='grey', alpha=0.8)
596+
fontsize=4, color='grey', alpha=0.8)
597597

598598
for i in self.TagsD:
599599
self.axes[1,1].annotate(i.Label, xy=i.Location, xycoords='data', xytext=(i.X_offset, i.Y_offset),
600600
textcoords='offset points',
601-
fontsize=8, color='grey', alpha=0.8)
601+
fontsize=4, color='grey', alpha=0.8)
602602

603603

604604

geopytool/Trans.py

+37-8
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,10 @@ def create_main_frame(self):
6868

6969

7070
self.transpose_button = QPushButton('&Transpose')
71-
self.center_Geometric_button = QPushButton('&Divide by Geometric Mean')
72-
self.center_Arithmetic_button = QPushButton('&Subtract Arithmetic Average')
71+
self.divide_Geometric_button = QPushButton('&Divide by Geometric Mean')
72+
self.subtract_Geometric_button = QPushButton('&Subtract Geometric Mean')
73+
self.divide_Arithmetic_button = QPushButton('&Divide By Arithmetic Average')
74+
self.subtract_Arithmetic_button = QPushButton('&Subtract Arithmetic Average')
7375

7476
self.min_max_button = QPushButton('&Min-Max Standard')
7577
self.std_button = QPushButton('&Standard')
@@ -97,8 +99,12 @@ def create_main_frame(self):
9799
self.reset_button.clicked.connect(self.resetResult)
98100

99101
self.transpose_button.clicked.connect(self.transpose)
100-
self.center_Geometric_button.clicked.connect(self.center_Geometric)
101-
self.center_Arithmetic_button.clicked.connect(self.center_Arithmetic)
102+
self.divide_Geometric_button.clicked.connect(self.divide_Geometric)
103+
self.subtract_Geometric_button.clicked.connect(self.subtract_Geometric)
104+
self.divide_Arithmetic_button.clicked.connect(self.divide_Arithmetic)
105+
self.subtract_Arithmetic_button.clicked.connect(self.subtract_Arithmetic)
106+
107+
102108
self.min_max_button.clicked.connect(self.min_max)
103109
self.std_button.clicked.connect(self.std)
104110

@@ -134,8 +140,10 @@ def create_main_frame(self):
134140
self.save_button,]:
135141
self.hbox0.addWidget(w)
136142

137-
for w in [self.center_Arithmetic_button,
138-
self.center_Geometric_button,
143+
for w in [self.subtract_Arithmetic_button,
144+
self.divide_Arithmetic_button,
145+
self.subtract_Geometric_button,
146+
self.divide_Geometric_button,
139147
self.min_max_button,
140148
self.std_button]:
141149
self.hbox1.addWidget(w)
@@ -271,7 +279,7 @@ def remove_column_with_0(self):
271279
self.tableView.setModel(self.tableresult)
272280
self.show()
273281

274-
def center_Geometric(self):
282+
def divide_Geometric(self):
275283

276284
gmean=st.gmean(self.result.T)
277285
tmpresult=self.result.T/gmean
@@ -281,14 +289,35 @@ def center_Geometric(self):
281289
self.show()
282290

283291

284-
def center_Arithmetic(self):
292+
def subtract_Geometric(self):
293+
294+
gmean=st.gmean(self.result.T)
295+
tmpresult=self.result.T-gmean
296+
self.result=tmpresult.T
297+
self.tableresult=PandasModel(self.result)
298+
self.tableView.setModel(self.tableresult)
299+
self.show()
300+
301+
302+
303+
def subtract_Arithmetic(self):
285304
mean=self.result.T.mean(numeric_only= float)
286305
tmpresult=self.result.T-mean
287306
self.result=tmpresult.T
288307
self.tableresult=PandasModel(self.result)
289308
self.tableView.setModel(self.tableresult)
290309
self.show()
291310

311+
312+
313+
def divide_Arithmetic(self):
314+
mean=self.result.T.mean(numeric_only= float)
315+
tmpresult=self.result.T/mean
316+
self.result=tmpresult.T
317+
self.tableresult=PandasModel(self.result)
318+
self.tableView.setModel(self.tableresult)
319+
self.show()
320+
292321
def min_max(self):
293322
# mean=self.result.T.mean(numeric_only= float)
294323
# std=self.result.T.std(numeric_only= float)

geopytool/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919

2020
setup(name='geopytool',
21-
version="0.9.21.0.003",
21+
version="0.9.21.0.004",
2222
description='a tool for daily geology related task. visit geopytool.com for further information',
2323
longdescription=README,
2424
author='cycleuser',

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919

2020
setup(name='geopytool',
21-
version="0.9.21.0.003",
21+
version="0.9.21.0.004",
2222
description='a tool for daily geology related task. visit geopytool.com for further information',
2323
longdescription=README,
2424
author='cycleuser',

0 commit comments

Comments
 (0)