Skip to content

Commit 720de8c

Browse files
gbeanekeithshep
andauthored
Update src/jabs/feature_extraction/features.py
Co-authored-by: Keith Sheppard <keith.sheppard@jax.org>
1 parent 4a336d5 commit 720de8c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/jabs/feature_extraction/features.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,10 @@ def __init__(
115115
self._cache_window = cache_window
116116
self._compute_social_features = pose_est.format_major_version >= 3
117117

118-
if (
118+
self._compute_segmentation_features = (
119119
pose_est.format_major_version >= 6
120120
and cast(PoseEstimationV6, pose_est).has_segmentation
121-
):
122-
self._compute_segmentation_features = True
123-
else:
124-
self._compute_segmentation_features = False
121+
)
125122

126123
distance_scale = (
127124
self._distance_scale_factor if self._distance_scale_factor is not None else 1.0

0 commit comments

Comments
 (0)