Skip to content

Commit

Permalink
enabling pupil only processing and turning off fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
carsen-stringer committed Nov 21, 2024
1 parent 222fb6f commit e824386
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
23 changes: 11 additions & 12 deletions facemap/gui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __init__(
QtCore.QCoreApplication.setApplicationName("Facemap")

pg.setConfigOptions(imageAxisOrder="row-major")
self.setGeometry(15, 5, 1470, 800)#(55, 5, 1470, 800)
self.setGeometry(15, 5, 1700, 800)#(55, 5, 1470, 800)
self.setWindowTitle("Facemap")
self.setStyleSheet("QMainWindow {background: 'black';}")
self.styleUnpressed = (
Expand Down Expand Up @@ -120,7 +120,7 @@ def __init__(
self.central_widget.setLayout(self.scene_grid_layout)
# --- cells image
self.sizeObject = QtGui.QGuiApplication.primaryScreen().availableGeometry()
self.resize(self.sizeObject.width(), self.sizeObject.height())
#self.resize(self.sizeObject.width(), self.sizeObject.height())

self.video_window = pg.GraphicsLayoutWidget()
self.video_window.viewport().setAttribute(QtCore.Qt.WidgetAttribute.WA_AcceptTouchEvents, False)
Expand Down Expand Up @@ -1238,16 +1238,15 @@ def process_batch(self):
print(files)
for file_idx, f in enumerate(files):
proc = np.load(f, allow_pickle=True).item()
if proc["motSVD"] or proc["movSVD"]:
savename = process.run(
proc["filenames"],
motSVD=proc["motSVD"],
movSVD=proc["movSVD"],
GUIobject=QtWidgets,
proc=proc,
savepath=proc["save_path"],
)
self.update_status_bar("Processed " + savename)
savename = process.run(
proc["filenames"],
motSVD=proc["motSVD"],
movSVD=proc["movSVD"],
GUIobject=QtWidgets,
proc=proc,
savepath=proc["save_path"],
)
self.update_status_bar("Processed " + savename)
if self.keypoints_checkbox.isChecked():
self.filenames = proc["filenames"]
self.bbox = proc["pose_settings"]["bbox"]
Expand Down
1 change: 1 addition & 0 deletions facemap/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,7 @@ def run(
Lybin, Lxbin, iinds = binned_inds(Ly, Lx, sbin)
LYbin, LXbin, sybin, sxbin = utils.video_placement(Lybin, Lxbin)

# number of mot/mov ROIs
nroi = 0
if rois is not None:
for r in rois:
Expand Down

0 comments on commit e824386

Please sign in to comment.