Skip to content

Commit bdc911a

Browse files
author
Evan Seitz
committed
update
1 parent b61ad16 commit bdc911a

File tree

55 files changed

+26
-27
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+26
-27
lines changed

ManifoldEM_GUI.py

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6486,29 +6486,29 @@ def remove(self):
64866486
else:
64876487
sums += 1 #number of encircled points
64886488

6489-
delta = len(Manifold2dCanvas.pts_newX)
6489+
#delta = len(Manifold2dCanvas.pts_newX)
64906490

6491-
if delta >= p.PDsizeThL:
6492-
# crop out points, redraw and resize figure:
6493-
self.ax.clear()
6494-
self.ax.scatter(Manifold2dCanvas.pts_newX, Manifold2dCanvas.pts_newY, s=1, c='#1f77b4')
6495-
for tick in self.ax.xaxis.get_major_ticks():
6496-
tick.label.set_fontsize(4)
6497-
for tick in self.ax.yaxis.get_major_ticks():
6498-
tick.label.set_fontsize(4)
6499-
self.ax.get_xaxis().set_ticks([])
6500-
self.ax.get_yaxis().set_ticks([])
6501-
self.ax.set_title('Place points on the plot to encircle deviant cluster(s)', fontsize=3.5)
6502-
self.ax.set_xlabel(r'$\mathrm{\Psi}$%s' % (Manifold2dCanvas.eig_current), fontsize=6)
6503-
self.ax.set_ylabel(r'$\mathrm{\Psi}$%s' % (Manifold2dCanvas.eig_compare1), fontsize=6)
6504-
self.ax.autoscale()
6505-
self.canvas.draw()
6506-
#self.connected = 0 #if commented out, no more mouse clicks accepted (until 'reset')
6507-
self.btn_remove.setDisabled(True)
6508-
self.btn_view.setDisabled(True)
6509-
self.btn_rebed.setDisabled(False)
6491+
#if delta >= p.PDsizeThL:
6492+
# crop out points, redraw and resize figure:
6493+
self.ax.clear()
6494+
self.ax.scatter(Manifold2dCanvas.pts_newX, Manifold2dCanvas.pts_newY, s=1, c='#1f77b4')
6495+
for tick in self.ax.xaxis.get_major_ticks():
6496+
tick.label.set_fontsize(4)
6497+
for tick in self.ax.yaxis.get_major_ticks():
6498+
tick.label.set_fontsize(4)
6499+
self.ax.get_xaxis().set_ticks([])
6500+
self.ax.get_yaxis().set_ticks([])
6501+
self.ax.set_title('Place points on the plot to encircle deviant cluster(s)', fontsize=3.5)
6502+
self.ax.set_xlabel(r'$\mathrm{\Psi}$%s' % (Manifold2dCanvas.eig_current), fontsize=6)
6503+
self.ax.set_ylabel(r'$\mathrm{\Psi}$%s' % (Manifold2dCanvas.eig_compare1), fontsize=6)
6504+
self.ax.autoscale()
6505+
self.canvas.draw()
6506+
#self.connected = 0 #if commented out, no more mouse clicks accepted (until 'reset')
6507+
self.btn_remove.setDisabled(True)
6508+
self.btn_view.setDisabled(True)
6509+
self.btn_rebed.setDisabled(False)
65106510

6511-
else:
6511+
'''else:
65126512
Manifold2dCanvas.pts_new = []
65136513
Manifold2dCanvas.pts_newX = []
65146514
Manifold2dCanvas.pts_newY = []
@@ -6524,7 +6524,7 @@ def remove(self):
65246524
box.setInformativeText(msg)
65256525
box.setStandardButtons(QtGui.QMessageBox.Ok)
65266526
box.setDefaultButton(QtGui.QMessageBox.Ok)
6527-
ret = box.exec_()
6527+
ret = box.exec_()'''
65286528

65296529
def rebed(self):
65306530
msg = 'Performing this action will recalculate the manifold \

data_viewers/DM_viewer.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
rc('font', family='serif')
3232

3333
# user parameters:
34-
projName = 'Apt5'
35-
PD = 7 #current PD (zero indexing)
34+
projName = 'untitled'
35+
PD = 1 #current PD (zero indexing)
3636
Batch = True #if True, batch print all PD embeddings to files in current directory
3737

3838
# don't change:
@@ -101,12 +101,11 @@
101101
else: #batch print all PD embeddings to files in current directory
102102

103103
# determine total number of PDs:
104-
toposDir = os.path.join(parDir, 'outputs_%s/topos' % (projName))
105104
PDs = 0
106-
for root, dirs, files in os.walk(toposDir):
105+
for root, dirs, files in os.walk(dmDir):
107106
for file in sorted(files):
108107
if not file.startswith('.'): #ignore hidden files
109-
if file.startswith('class_avg'):
108+
if file.startswith('gC_trimmed_psi_prD'):
110109
PDs += 1
111110
print('total PDs:', PDs)
112111

-2.57 KB
Binary file not shown.
-3.6 KB
Binary file not shown.
-3.23 KB
Binary file not shown.
-3.41 KB
Binary file not shown.
-5.62 KB
Binary file not shown.
-5.68 KB
Binary file not shown.
-5.78 KB
Binary file not shown.
-3.53 KB
Binary file not shown.

0 commit comments

Comments
 (0)