Skip to content

Commit e3be8b7

Browse files
committed
sync Merge branch 'dev' of https://github.com/MouseLand/facemap into dev
2 parents e0db191 + 4c7e10f commit e3be8b7

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
lines changed

.github/workflows/test_and_deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
push:
88
branches:
99
- main
10+
- dev
1011
tags:
1112
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
1213
pull_request:
@@ -20,7 +21,7 @@ jobs:
2021
runs-on: ${{ matrix.platform }}
2122
strategy:
2223
matrix:
23-
platform: [ubuntu-latest, windows-latest, macos-latest]
24+
platform: [ubuntu-latest, windows-latest, macos-13]
2425
python-version: [3.8, 3.9, "3.10"]
2526

2627
steps:

facemap/.github/workflows/test_and_deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ jobs:
2020
runs-on: ${{ matrix.platform }}
2121
strategy:
2222
matrix:
23-
platform: [ubuntu-latest, windows-latest, macos-latest]
23+
platform: [ubuntu-latest]
24+
#, windows-latest, macos-latest]
2425
python-version: [3.8, 3.9, "3.10"]
2526

2627
steps:

facemap/gui/gui.py

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def __init__(
7474
QtCore.QCoreApplication.setApplicationName("Facemap")
7575

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

125125
self.video_window = pg.GraphicsLayoutWidget()
126126
self.video_window.viewport().setAttribute(QtCore.Qt.WidgetAttribute.WA_AcceptTouchEvents, False)
@@ -1240,16 +1240,15 @@ def process_batch(self):
12401240
print(files)
12411241
for file_idx, f in enumerate(files):
12421242
proc = np.load(f, allow_pickle=True).item()
1243-
if proc["motSVD"] or proc["movSVD"]:
1244-
savename = process.run(
1245-
proc["filenames"],
1246-
motSVD=proc["motSVD"],
1247-
movSVD=proc["movSVD"],
1248-
GUIobject=QtWidgets,
1249-
proc=proc,
1250-
savepath=proc["save_path"],
1251-
)
1252-
self.update_status_bar("Processed " + savename)
1243+
savename = process.run(
1244+
proc["filenames"],
1245+
motSVD=proc["motSVD"],
1246+
movSVD=proc["movSVD"],
1247+
GUIobject=QtWidgets,
1248+
proc=proc,
1249+
savepath=proc["save_path"],
1250+
)
1251+
self.update_status_bar("Processed " + savename)
12531252
if self.keypoints_checkbox.isChecked():
12541253
self.filenames = proc["filenames"]
12551254
self.bbox = proc["pose_settings"]["bbox"]

facemap/process.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,7 @@ def run(
710710
Lybin, Lxbin, iinds = binned_inds(Ly, Lx, sbin)
711711
LYbin, LXbin, sybin, sxbin = utils.video_placement(Lybin, Lxbin)
712712

713+
# number of mot/mov ROIs
713714
nroi = 0
714715
if rois is not None:
715716
for r in rois:

0 commit comments

Comments
 (0)