boris-behav-obs 9.3.2__py2.py3-none-any.whl → 9.3.4__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- boris/config.py +4 -1
- boris/core.py +0 -5
- boris/core_qrc.py +6580 -6784
- boris/dialog.py +74 -5
- boris/event_operations.py +14 -2
- boris/media_file.py +12 -10
- boris/observation_operations.py +21 -12
- boris/project.py +78 -28
- boris/project_functions.py +38 -14
- boris/project_import_export.py +3 -1
- boris/utilities.py +1 -2
- boris/version.py +2 -2
- {boris_behav_obs-9.3.2.dist-info → boris_behav_obs-9.3.4.dist-info}/METADATA +2 -2
- {boris_behav_obs-9.3.2.dist-info → boris_behav_obs-9.3.4.dist-info}/RECORD +18 -18
- {boris_behav_obs-9.3.2.dist-info → boris_behav_obs-9.3.4.dist-info}/WHEEL +1 -1
- {boris_behav_obs-9.3.2.dist-info → boris_behav_obs-9.3.4.dist-info}/entry_points.txt +0 -0
- {boris_behav_obs-9.3.2.dist-info → boris_behav_obs-9.3.4.dist-info}/licenses/LICENSE.TXT +0 -0
- {boris_behav_obs-9.3.2.dist-info → boris_behav_obs-9.3.4.dist-info}/top_level.txt +0 -0
boris/config.py
CHANGED
|
@@ -155,6 +155,7 @@ CHECK_PROJECT_INTEGRITY = "check_project_integrity"
|
|
|
155
155
|
YES = "Yes"
|
|
156
156
|
NO = "No"
|
|
157
157
|
CANCEL = "Cancel"
|
|
158
|
+
IGNORE = "Ignore"
|
|
158
159
|
APPEND = "Append"
|
|
159
160
|
CLOSE = "Close"
|
|
160
161
|
REPLACE = "Replace"
|
|
@@ -454,7 +455,8 @@ POINT = "POINT"
|
|
|
454
455
|
START = "START"
|
|
455
456
|
STOP = "STOP"
|
|
456
457
|
|
|
457
|
-
PLAYER1
|
|
458
|
+
PLAYER1 = "1"
|
|
459
|
+
PLAYER2 = "2"
|
|
458
460
|
ALL_PLAYERS = [str(x + 1) for x in range(N_PLAYER)]
|
|
459
461
|
|
|
460
462
|
VISUALIZE_SPECTROGRAM = "visualize_spectrogram"
|
|
@@ -701,6 +703,7 @@ EMPTY_PROJECT = {
|
|
|
701
703
|
ETHOGRAM: {},
|
|
702
704
|
OBSERVATIONS: {},
|
|
703
705
|
BEHAVIORAL_CATEGORIES: [],
|
|
706
|
+
BEHAVIORAL_CATEGORIES_CONF: {},
|
|
704
707
|
INDEPENDENT_VARIABLES: {},
|
|
705
708
|
CODING_MAP: {},
|
|
706
709
|
BEHAVIORS_CODING_MAP: [],
|
boris/core.py
CHANGED
|
@@ -114,7 +114,6 @@ from . import cmd_arguments
|
|
|
114
114
|
|
|
115
115
|
from . import core_qrc
|
|
116
116
|
from .core_ui import Ui_MainWindow
|
|
117
|
-
import exifread
|
|
118
117
|
from . import config as cfg
|
|
119
118
|
from . import video_operations
|
|
120
119
|
|
|
@@ -4317,12 +4316,8 @@ class MainWindow(QMainWindow, Ui_MainWindow):
|
|
|
4317
4316
|
if not sys.platform.startswith(cfg.MACOS_CODE):
|
|
4318
4317
|
if self.dw_player[0].player.time_pos is not None:
|
|
4319
4318
|
for n_player in range(1, len(self.dw_player)):
|
|
4320
|
-
print(f"{n_player=}")
|
|
4321
|
-
|
|
4322
4319
|
ct = self.getLaps(n_player=n_player)
|
|
4323
4320
|
|
|
4324
|
-
print(f"{ct=}")
|
|
4325
|
-
|
|
4326
4321
|
# sync players 2..8 if time diff >= 1 s
|
|
4327
4322
|
if (
|
|
4328
4323
|
abs(ct0 - (ct + dec(self.pj[cfg.OBSERVATIONS][self.observationId][cfg.MEDIA_INFO][cfg.OFFSET][str(n_player + 1)])))
|