Skip to content

Commit 0f7b728

Browse files
committed
Fix error in FacialSignal make()
1 parent 10550ad commit 0f7b728

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and
44
[Keep a Changelog](https://keepachangelog.com/en/1.0.0/) convention.
55

6+
## [0.1.7] - 2023-10-18
7+
8+
+ Fix - Index `mot_Sv` and `movSv` by `roi_no` in `FacialSignal`
9+
610
## [0.1.6] - 2023-05-22
711

812
+ Add - Facemap citation

element_facemap/facial_behavior_estimation.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,9 @@ def make(self, key):
463463
key,
464464
roi_no=roi_no,
465465
pc_no=i,
466-
singular_value=dataset["motSv"][i] if "motSv" in dataset else None,
466+
singular_value=dataset["motSv"][roi_no][i]
467+
if "motSv" in dataset
468+
else None,
467469
motmask=dataset["motMask_reshape"][roi_no + 1][:, :, i],
468470
projection=dataset["motSVD"][roi_no + 1][i],
469471
)
@@ -479,7 +481,9 @@ def make(self, key):
479481
key,
480482
roi_no=roi_no,
481483
pc_no=i,
482-
singular_value=dataset["movSv"][i] if "movSv" in dataset else None,
484+
singular_value=dataset["movSv"][roi_no][i]
485+
if "movSv" in dataset
486+
else None,
483487
movmask=dataset["movMask_reshape"][roi_no + 1][:, :, i],
484488
projection=dataset["movSVD"][roi_no + 1][i],
485489
)

element_facemap/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"""Package metadata."""
2-
__version__ = "0.1.6"
2+
__version__ = "0.1.7"

0 commit comments

Comments
 (0)