boris-behav-obs 9.7.11__py3-none-any.whl → 9.7.13__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/core.py +4 -4
- boris/plot_spectrogram_rt.py +3 -0
- boris/plot_waveform_rt.py +4 -1
- boris/version.py +2 -2
- boris/video_operations.py +3 -2
- {boris_behav_obs-9.7.11.dist-info → boris_behav_obs-9.7.13.dist-info}/METADATA +2 -2
- {boris_behav_obs-9.7.11.dist-info → boris_behav_obs-9.7.13.dist-info}/RECORD +11 -11
- {boris_behav_obs-9.7.11.dist-info → boris_behav_obs-9.7.13.dist-info}/WHEEL +0 -0
- {boris_behav_obs-9.7.11.dist-info → boris_behav_obs-9.7.13.dist-info}/entry_points.txt +0 -0
- {boris_behav_obs-9.7.11.dist-info → boris_behav_obs-9.7.13.dist-info}/licenses/LICENSE.TXT +0 -0
- {boris_behav_obs-9.7.11.dist-info → boris_behav_obs-9.7.13.dist-info}/top_level.txt +0 -0
boris/core.py
CHANGED
|
@@ -4258,7 +4258,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
|
|
|
4258
4258
|
# current media name
|
|
4259
4259
|
playlist = self.dw_player[0].player.playlist
|
|
4260
4260
|
playlist_pos = self.dw_player[0].player.playlist_pos
|
|
4261
|
-
if playlist is not None and playlist_pos is not None:
|
|
4261
|
+
if playlist is not None and playlist_pos is not None and playlist:
|
|
4262
4262
|
current_media_name = Path(playlist[playlist_pos]["filename"]).name
|
|
4263
4263
|
current_playlist_index = playlist_pos
|
|
4264
4264
|
else:
|
|
@@ -4297,9 +4297,8 @@ class MainWindow(QMainWindow, Ui_MainWindow):
|
|
|
4297
4297
|
self.mem_media_name = current_media_name
|
|
4298
4298
|
self.mem_playlist_index = current_playlist_index
|
|
4299
4299
|
|
|
4300
|
-
playlist_length = len(self.dw_player[0].player.playlist)
|
|
4301
|
-
|
|
4302
4300
|
# update observation info
|
|
4301
|
+
playlist_length = len(playlist) if playlist else 0
|
|
4303
4302
|
msg = ""
|
|
4304
4303
|
if self.dw_player[0].player.time_pos is not None: # check if video
|
|
4305
4304
|
msg = f"Current media name: <b>{current_media_name}</b> (#{self.dw_player[0].player.playlist_pos + 1} / {playlist_length})<br>"
|
|
@@ -4339,7 +4338,8 @@ class MainWindow(QMainWindow, Ui_MainWindow):
|
|
|
4339
4338
|
# set video scroll bar
|
|
4340
4339
|
|
|
4341
4340
|
if scroll_slider and not self.user_move_slider:
|
|
4342
|
-
|
|
4341
|
+
if current_media_time_pos is not None and current_media_duration is not None:
|
|
4342
|
+
self.video_slider.setValue(round(current_media_time_pos / current_media_duration * (cfg.SLIDER_MAXIMUM - 1)))
|
|
4343
4343
|
|
|
4344
4344
|
def mpv_eof_reached(self):
|
|
4345
4345
|
"""
|
boris/plot_spectrogram_rt.py
CHANGED
|
@@ -205,6 +205,9 @@ class Plot_spectrogram_RT(QWidget):
|
|
|
205
205
|
vmin = self.config_param.get(cfg.SPECTROGRAM_VMIN, cfg.SPECTROGRAM_DEFAULT_VMIN)
|
|
206
206
|
vmax = self.config_param.get(cfg.SPECTROGRAM_VMAX, cfg.SPECTROGRAM_DEFAULT_VMAX)
|
|
207
207
|
|
|
208
|
+
if current_time is None:
|
|
209
|
+
return
|
|
210
|
+
|
|
208
211
|
# start
|
|
209
212
|
if current_time <= self.interval / 2:
|
|
210
213
|
self.ax.specgram(
|
boris/plot_waveform_rt.py
CHANGED
|
@@ -156,7 +156,7 @@ class Plot_waveform_RT(QWidget):
|
|
|
156
156
|
self.interval += 5 * action
|
|
157
157
|
self.plot_waveform(current_time=self.time_mem, force_plot=True)
|
|
158
158
|
|
|
159
|
-
def plot_waveform(self, current_time: float, force_plot: bool = False):
|
|
159
|
+
def plot_waveform(self, current_time: float, force_plot: bool = False) -> None:
|
|
160
160
|
"""
|
|
161
161
|
plot sound waveform centered on the current time
|
|
162
162
|
|
|
@@ -172,6 +172,9 @@ class Plot_waveform_RT(QWidget):
|
|
|
172
172
|
|
|
173
173
|
self.ax.clear()
|
|
174
174
|
|
|
175
|
+
if current_time is None:
|
|
176
|
+
return
|
|
177
|
+
|
|
175
178
|
# start
|
|
176
179
|
if current_time <= self.interval / 2:
|
|
177
180
|
time_ = np.linspace(
|
boris/version.py
CHANGED
boris/video_operations.py
CHANGED
|
@@ -235,8 +235,9 @@ def display_zoom_level(self) -> None:
|
|
|
235
235
|
if vz is None:
|
|
236
236
|
self.lb_zoom_level.setText("-")
|
|
237
237
|
return
|
|
238
|
-
|
|
239
|
-
|
|
238
|
+
player_video_zoom = player.player.video_zoom
|
|
239
|
+
if player_video_zoom is not None:
|
|
240
|
+
msg += f"{2**player_video_zoom:.1f} "
|
|
240
241
|
else:
|
|
241
242
|
msg += "NA "
|
|
242
243
|
msg += "</b>"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: boris-behav-obs
|
|
3
|
-
Version: 9.7.
|
|
3
|
+
Version: 9.7.13
|
|
4
4
|
Summary: BORIS - Behavioral Observation Research Interactive Software
|
|
5
5
|
Author-email: Olivier Friard <olivier.friard@unito.it>
|
|
6
6
|
License-Expression: GPL-3.0-only
|
|
@@ -51,7 +51,7 @@ It provides also some analysis tools like time budget and some plotting function
|
|
|
51
51
|
<!-- The BO-RIS paper has more than [ citations](https://www.boris.unito.it/citations) in peer-reviewed scientific publications. -->
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
The BORIS paper has more than
|
|
54
|
+
The BORIS paper has more than 2474 citations in peer-reviewed scientific publications.
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
|
|
@@ -16,7 +16,7 @@ boris/connections.py,sha256=KsC17LnS4tRM6O3Nu3mD1H9kQ7uYhhad9229jXfGF94,19774
|
|
|
16
16
|
boris/converters.py,sha256=n6gDM9x2hS-ZOoHLruiifuXxnC7ERsUukiFokhHZPoQ,11678
|
|
17
17
|
boris/converters_ui.py,sha256=uu7LOBV_fKv2DBdOqsqPwjGsjgONr5ODBoscAA-EP48,9900
|
|
18
18
|
boris/cooccurence.py,sha256=tVERC-V8MWjWHlGEfDuu08iS94qjt4do-38jwI62QaY,10367
|
|
19
|
-
boris/core.py,sha256=
|
|
19
|
+
boris/core.py,sha256=8erhrfwncWwZyctXFOBFiWusc9nzFv94jVBJT-8ajTk,234570
|
|
20
20
|
boris/core_qrc.py,sha256=Hz51Xw70ZIlDbYB281nfGtCm43_ItYhamMu2T5X8Tu8,639882
|
|
21
21
|
boris/core_ui.py,sha256=uDAI9mbadBe2mSsgugzNfRHxASc6Mu5kUf5tB9CZCjY,77445
|
|
22
22
|
boris/db_functions.py,sha256=TfCJ0Hq0pTFOKrZz3RzdvnR-NKCmrPHU2qL9BSXeeGQ,13379
|
|
@@ -57,8 +57,8 @@ boris/player_dock_widget.py,sha256=rdP0w6Wac7R3UMqJeHl7GNvT1hElu_x_VgNkg4Ut-6s,5
|
|
|
57
57
|
boris/plot_data_module.py,sha256=Xq70HDlAtvganwNmbRDUA3iKV-415zS9W1H1x0itXWE,16594
|
|
58
58
|
boris/plot_events.py,sha256=tKiUWH0TNSkK7xz5Vf0tAD3KiuAalv6UZEVtOnoFpWY,24059
|
|
59
59
|
boris/plot_events_rt.py,sha256=xJmjwqhQxCN4FDBYRQ0O2eHm356Rbexzr3m1qTefMDU,8326
|
|
60
|
-
boris/plot_spectrogram_rt.py,sha256=
|
|
61
|
-
boris/plot_waveform_rt.py,sha256=
|
|
60
|
+
boris/plot_spectrogram_rt.py,sha256=JYuh14dI9uMPI4R6glI_jJ12itpe2X268RNtOgzm_oc,10978
|
|
61
|
+
boris/plot_waveform_rt.py,sha256=JM4TtN7IFZqLRY4k4rJ-U0DMvGdQ2FFlwH2xVOyrx68,7595
|
|
62
62
|
boris/plugins.py,sha256=AzjKLPsqBk-K8wPM3HXe4w-sNaDU1bQm2XEoLr4Zx0k,17234
|
|
63
63
|
boris/preferences.py,sha256=YcGBaXRfimH4jpFLfcUAgCAGESXSLhB6cli_cg4cDl0,21902
|
|
64
64
|
boris/preferences_ui.py,sha256=sRmsI04uRtY4xthioZVMYEv2b8WTeYfXXOk_iSNDVXU,35187
|
|
@@ -78,10 +78,10 @@ boris/time_budget_functions.py,sha256=SbGyTF2xySEqBdRJZeWFTirruvK3r6pwM6e4Gz17W1
|
|
|
78
78
|
boris/time_budget_widget.py,sha256=z-tyITBtIz-KH1H2OdMB5a8x9QQLK7Wu96-zkC6NVDA,43213
|
|
79
79
|
boris/transitions.py,sha256=okyDCO-Vn4p_Fixd8cGiSIaUhUxG5ePIOqGSuP52g_c,12246
|
|
80
80
|
boris/utilities.py,sha256=Ae3YjXkulJYQxbE4Fpvle4tX2nA_qJQhAn980sTFHqw,58805
|
|
81
|
-
boris/version.py,sha256=
|
|
81
|
+
boris/version.py,sha256=YzuLH3DVNue_xlMo4pUwZ3l5wlipp-wNDMbCK2hTDAo,788
|
|
82
82
|
boris/video_equalizer.py,sha256=cm2JXe1eAPkqDzxYB2OMKyuveMBdq4a9-gD1bBorbn4,5823
|
|
83
83
|
boris/video_equalizer_ui.py,sha256=1CG3s79eM4JAbaCx3i1ILZXLceb41_gGXlOLNfpBgnw,10142
|
|
84
|
-
boris/video_operations.py,sha256=
|
|
84
|
+
boris/video_operations.py,sha256=dSpD1cnDm7DiTUirIcCYE1Olb5HlY8-S4CpLynyT1L8,11054
|
|
85
85
|
boris/view_df.py,sha256=fhcNMFFVbQ4ZTpPwN_4Bg66DDIoV25zaPryZUsOxsKg,3338
|
|
86
86
|
boris/view_df_ui.py,sha256=CaMeRH_vQ00CTDDFQn73ZZaS-r8BSTWpL-dMCFqzJ_Q,2775
|
|
87
87
|
boris/write_event.py,sha256=xC-dUjgPS4-tvrQfvyL7O_xi-tyQI7leSiSV8_x8hgg,23817
|
|
@@ -102,9 +102,9 @@ boris/portion/dict.py,sha256=uNM-LEY52CZ2VNMMW_C9QukoyTvPlQf8vcbGa1lQBHI,11281
|
|
|
102
102
|
boris/portion/func.py,sha256=mSQr20YS1ug7R1fRqBg8LifjtXDRvJ6Kjc3WOeL9P34,2172
|
|
103
103
|
boris/portion/interval.py,sha256=sOlj3MAGGaB-JxCkigS-n3qw0fY7TANAsXv1pavr8J4,19931
|
|
104
104
|
boris/portion/io.py,sha256=kpq44pw3xnIyAlPwaR5qRHKRdZ72f8HS9YVIWs5k2pk,6367
|
|
105
|
-
boris_behav_obs-9.7.
|
|
106
|
-
boris_behav_obs-9.7.
|
|
107
|
-
boris_behav_obs-9.7.
|
|
108
|
-
boris_behav_obs-9.7.
|
|
109
|
-
boris_behav_obs-9.7.
|
|
110
|
-
boris_behav_obs-9.7.
|
|
105
|
+
boris_behav_obs-9.7.13.dist-info/licenses/LICENSE.TXT,sha256=WJ7YI-moTFb-uVrFjnzzhGJrnL9P2iqQe8NuED3hutI,35141
|
|
106
|
+
boris_behav_obs-9.7.13.dist-info/METADATA,sha256=j6gTMcYfgk6OwDX-9y-c3YU_vCLN4u5ASpc12d1xt8Y,5204
|
|
107
|
+
boris_behav_obs-9.7.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
108
|
+
boris_behav_obs-9.7.13.dist-info/entry_points.txt,sha256=k__8XvFi4vaA4QFvQehCZjYkKmZH34HSAJI2iYCWrMs,52
|
|
109
|
+
boris_behav_obs-9.7.13.dist-info/top_level.txt,sha256=fJSgm62S7WesiwTorGbOO4nNN0yzgZ3klgfGi3Px4qI,6
|
|
110
|
+
boris_behav_obs-9.7.13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|