boris-behav-obs 9.0.1__py2.py3-none-any.whl → 9.0.2__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/core.py CHANGED
@@ -4817,6 +4817,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
4817
4817
 
4818
4818
  event = dict(self.pj[cfg.ETHOGRAM][behavior_idx])
4819
4819
  # check if coding map for modifiers
4820
+
4820
4821
  if util.has_coding_map(self.pj[cfg.ETHOGRAM], behavior_idx):
4821
4822
  # pause if media and media playing
4822
4823
  if self.pj[cfg.OBSERVATIONS][self.observationId][cfg.TYPE] == cfg.MEDIA:
boris/utilities.py CHANGED
@@ -89,10 +89,10 @@ def extract_exif_DateTimeOriginal(file_path: str) -> int:
89
89
  tags = exifread.process_file(f_in, details=False, stop_tag="EXIF DateTimeOriginal")
90
90
  if "EXIF DateTimeOriginal" in tags:
91
91
  date_time_original = (
92
- f'{tags["EXIF DateTimeOriginal"].values[:4]}-'
93
- f'{tags["EXIF DateTimeOriginal"].values[5:7]}-'
94
- f'{tags["EXIF DateTimeOriginal"].values[8:10]} '
95
- f'{tags["EXIF DateTimeOriginal"].values.split(" ")[-1]}'
92
+ f"{tags['EXIF DateTimeOriginal'].values[:4]}-"
93
+ f"{tags['EXIF DateTimeOriginal'].values[5:7]}-"
94
+ f"{tags['EXIF DateTimeOriginal'].values[8:10]} "
95
+ f"{tags['EXIF DateTimeOriginal'].values.split(' ')[-1]}"
96
96
  )
97
97
  return int(datetime.datetime.strptime(date_time_original, "%Y-%m-%d %H:%M:%S").timestamp())
98
98
  else:
@@ -143,14 +143,14 @@ def extract_date_time_from_file_name(file_path: str) -> int:
143
143
  if matches:
144
144
  if pattern == r"\d{4}-\d{2}-\d{2}_\d{6}":
145
145
  logging.debug(
146
- f"extract_date_time_from_file_name timestamp from {file_path}: {int(datetime.datetime.strptime(matches[0], "%Y-%m-%d_%H%M%S").timestamp())}"
146
+ f"extract_date_time_from_file_name timestamp from {file_path}: {int(datetime.datetime.strptime(matches[0], '%Y-%m-%d_%H%M%S').timestamp())}"
147
147
  )
148
148
 
149
149
  return int(datetime.datetime.strptime(matches[0], "%Y-%m-%d_%H%M%S").timestamp())
150
150
 
151
151
  if pattern == r"\d{4}-\d{2}-\d{2}_\d{2}:\d{2}:\d{2}":
152
152
  logging.debug(
153
- f"extract_date_time_from_file_name timestamp from {file_path}: {int(datetime.datetime.strptime(matches[0], "%Y-%m-%d_%H:%M:%S").timestamp())}"
153
+ f"extract_date_time_from_file_name timestamp from {file_path}: {int(datetime.datetime.strptime(matches[0], '%Y-%m-%d_%H:%M:%S').timestamp())}"
154
154
  )
155
155
 
156
156
  return int(datetime.datetime.strptime(matches[0], "%Y-%m-%d_%H:%M:%S").timestamp())
@@ -1617,7 +1617,7 @@ def has_coding_map(ethogram: dict, behavior_idx: str) -> bool:
1617
1617
  return False
1618
1618
  if not ethogram[behavior_idx].get("coding map", False):
1619
1619
  return False
1620
- return False
1620
+ return True
1621
1621
 
1622
1622
 
1623
1623
  def dir_images_number(dir_path_str: str) -> dict:
boris/version.py CHANGED
@@ -20,5 +20,5 @@ This file is part of BORIS.
20
20
 
21
21
  """
22
22
 
23
- __version__ = "9.0.1"
24
- __version_date__ = "2025-01-10"
23
+ __version__ = "9.0.2"
24
+ __version_date__ = "2025-01-15"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: boris-behav-obs
3
- Version: 9.0.1
3
+ Version: 9.0.2
4
4
  Summary: BORIS - Behavioral Observation Research Interactive Software
5
5
  Author-email: Olivier Friard <olivier.friard@unito.it>
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -16,7 +16,7 @@ boris/connections.py,sha256=23tolOXp7-RJbikxGaO8Wjdvb0_tCMoakInrULDP7dg,19294
16
16
  boris/converters.py,sha256=6ibgXkXIm3lv9mRez9VjFm-NiEZLGX9snGIPekTsXPg,11722
17
17
  boris/converters_ui.py,sha256=uu7LOBV_fKv2DBdOqsqPwjGsjgONr5ODBoscAA-EP48,9900
18
18
  boris/cooccurence.py,sha256=O1Usid6RrP6OTyt99FM_6WTKRpsUM9h_SC6hQJV9O78,9826
19
- boris/core.py,sha256=SO_yplMLrQgUYEceaA9nPCOYQSk8RtK1gpoQhmAQDQg,233905
19
+ boris/core.py,sha256=Khf4quwyYKbp9xpAxezAktJTycCxmEmewZRHPXtP020,233906
20
20
  boris/core_qrc.py,sha256=T3ki5e2Pj0I0QBGz63MPUgZzl8F_VHZwSq074mRNBDU,650669
21
21
  boris/core_ui.py,sha256=SeC26uveDCjrCBLsRPuQ6FaapKfON_HIRcQStEDLhl4,76384
22
22
  boris/db_functions.py,sha256=4BTRXxAeXYOFsBpnHhtdZ5HC7MaNjWLdkcM-kmlY0ng,13352
@@ -77,8 +77,8 @@ boris/synthetic_time_budget.py,sha256=AYVEMRZ7O3UdPMak-nHn-P9wDT9__nX4YT5DXIhUKp
77
77
  boris/time_budget_functions.py,sha256=pTPYnDO6t4tKn2MWAvvsDSzcljhcN-7ORzcx0Sipcuo,52022
78
78
  boris/time_budget_widget.py,sha256=zjKb14JGrOU7FeE1lq_ICYhUxmoGZGUVSkPqVTSDkSs,42460
79
79
  boris/transitions.py,sha256=JvtxwQr1ijuPMqtPQcpDFDcdMAP6dfXTa2u7OlmtAPE,12250
80
- boris/utilities.py,sha256=IaoPCIpt4rSRrWjEWDN8jnSczVZPEHlZvyAqBilo6G8,52708
81
- boris/version.py,sha256=5ttC1vVs4mDC25RJfQRYwwunfUWQTieAb4G-KXMFq08,787
80
+ boris/utilities.py,sha256=cRYnzvRcGfzrP8jSHqKlbHMJN8ymAo8vvr5tVmgdVtw,52707
81
+ boris/version.py,sha256=7vCwv29b9e_HZxrvVgNoSxU4IQgf5L1GUUNnuLDQ7Ts,787
82
82
  boris/video_equalizer.py,sha256=CRqPm2WcS4037ffLeMiguZQKq9tltLvPHzOMJjf_6MM,5854
83
83
  boris/video_equalizer_ui.py,sha256=1CG3s79eM4JAbaCx3i1ILZXLceb41_gGXlOLNfpBgnw,10142
84
84
  boris/video_operations.py,sha256=IoMoUvZx39JtooFfYAQ9bgYOXusD04gDMDCjCtXhj0k,9381
@@ -95,9 +95,9 @@ boris/portion/dict.py,sha256=SyHxc7PfDw2ufNLFQycwJtzmRfL48rDp4UrM2KN7IWc,11282
95
95
  boris/portion/func.py,sha256=3TkQtFKLfsqntwd27HSGHceFhnXHmT-EbNMqktElC5Q,2174
96
96
  boris/portion/interval.py,sha256=bAdUiJjGeUAPgsBAImwNeviiwfQq5odfhFZccAWzOTA,20299
97
97
  boris/portion/io.py,sha256=ppNeRpiLNrocF1yzGeuEUIhYMf2LfsR-cji3d0nmvUs,6371
98
- boris_behav_obs-9.0.1.dist-info/LICENSE.TXT,sha256=WJ7YI-moTFb-uVrFjnzzhGJrnL9P2iqQe8NuED3hutI,35141
99
- boris_behav_obs-9.0.1.dist-info/METADATA,sha256=Q-scOhsoMA1ZEt2GghCXF1CeTpCT5_TxhX-jaaQdTyA,42102
100
- boris_behav_obs-9.0.1.dist-info/WHEEL,sha256=9Hm2OB-j1QcCUq9Jguht7ayGIIZBRTdOXD1qg9cCgPM,109
101
- boris_behav_obs-9.0.1.dist-info/entry_points.txt,sha256=-Vl37ZFjZYK5wTSDf5LAzd2cVLON1Pfy1xkx490Wxak,47
102
- boris_behav_obs-9.0.1.dist-info/top_level.txt,sha256=fJSgm62S7WesiwTorGbOO4nNN0yzgZ3klgfGi3Px4qI,6
103
- boris_behav_obs-9.0.1.dist-info/RECORD,,
98
+ boris_behav_obs-9.0.2.dist-info/LICENSE.TXT,sha256=WJ7YI-moTFb-uVrFjnzzhGJrnL9P2iqQe8NuED3hutI,35141
99
+ boris_behav_obs-9.0.2.dist-info/METADATA,sha256=7j7sJhMHQrIQAdp9GdyVrIAbEiwv4CAP95abTj6xECk,42102
100
+ boris_behav_obs-9.0.2.dist-info/WHEEL,sha256=9Hm2OB-j1QcCUq9Jguht7ayGIIZBRTdOXD1qg9cCgPM,109
101
+ boris_behav_obs-9.0.2.dist-info/entry_points.txt,sha256=-Vl37ZFjZYK5wTSDf5LAzd2cVLON1Pfy1xkx490Wxak,47
102
+ boris_behav_obs-9.0.2.dist-info/top_level.txt,sha256=fJSgm62S7WesiwTorGbOO4nNN0yzgZ3klgfGi3Px4qI,6
103
+ boris_behav_obs-9.0.2.dist-info/RECORD,,