olivierfriard / BORIS

Behavioral Observation Research Interactive Software
http://www.boris.unito.it
GNU General Public License v3.0
177 stars 35 forks source link

BORIS no longer allows editing of observation #779

Open lysandrafp opened 3 months ago

lysandrafp commented 3 months ago

BORIS version: 8.27.1 OS: Windows 11 10.0.22631 CPU: AMD64 Intel64 Family 6 Model 126 Stepping 5, GenuineIntel Python 3.12.4 (64-bit) Qt 5.15.2 - PyQt 5.15.10 MPV library version: 2.1 MPV library file path: C:\Users\Lysandra\BORIS\Lib\site-packages\boris\misc\mpv-2.dll

Error succeded at 2024-08-06 18:41

Traceback (most recent call last): File "C:\Users\Lysandra\BORIS\Lib\site-packages\boris\connections.py", line 90, in self.actionEdit_observation_2.triggered.connect(lambda: observation_operations.edit_observation(self)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Lysandra\BORIS\Lib\site-packages\boris\observation_operations.py", line 265, in edit_observation new_observation(self, mode=cfg.EDIT, obsId=selected_observations[0]) File "C:\Users\Lysandra\BORIS\Lib\site-packages\boris\observation_operations.py", line 753, in new_observation observationWindow.sb_media_scan_sampling.setValue(self.pj[cfg.OBSERVATIONS][obsId].get(cfg.MEDIA_SCAN_SAMPLING_DURATION, 0)) TypeError: setValue(self, val: int): argument 1 has unexpected type 'float'

olivierfriard commented 3 months ago

Hi, did you edit the BORIS project file with an external program?

Is it possible to access the project file that give this issue?