Skip to content

ctrl + c ctrl + v doesn't work #188

Description

@soldevilaaron-creator

Is there an existing issue for this?

  • I have searched the existing issues

Operating System

Edition Windows 11 Pro
Version 25H2
OS build 26200.8246
Experience Windows Feature Experience Pack 1000.26100.297.0

DeepLabCut version

'3.0.0rc13'

What engine are you using?

pytorch

DeepLabCut mode

single animal

Device type

CPU: AMD Ryzen 7 9700X 8-Core Processor (3.80 GHz)
GPU: NVIDIA GeForce RTX 5070 (12 GB)

Bug description 🐛

I was analysing Elevated Plus Maze videos and wanted to add the shape of the EPM to each frame. Since the EPM doesn't move I marked the point in the first frame then I wanted to copy them to the others. (I want to do this because the EPM isn't in the same location in each video, teaching DLC to recognise it I hope will solve issues with small variations in its placement, e.g.: if I knock over the camera a little. If someone knows a better way to do this with DLC, I'm all ears though.) A sidenote: I decided to add the EPM to the skeleton structure after I analysed the mouse movements and realised alternative ways of marking the EPM shape weren't as reliable as I tought they wouldbe.

Steps To Reproduce

Cuda version:
release 13.0, V13.0.88
Build cuda_13.0.r13.0/compiler.36424714_0
DLC version:
3.0.0rc13
pytorch version:
2.12.0.dev20260327+cu128
I opened a mp4 file from labeled-data then started adding the new bodyparts. After I selected all points with ctrl + a, I pressed ctrl + c, moved on the next frame with the right arrow key and pressed ctrl + v. When I pressed ctrl + v the error message showed up, see the relevant log output below.

Relevant log output

Error calling Python override of QSplitter::keyPressEvent(): Traceback (most recent call last):
  File "C:\Users\solde\anaconda\envs\deeplabcut\Lib\site-packages\napari\_qt\qt_viewer.py", line 1173, in keyPressEvent
    self.canvas._scene_canvas._backend._keyEvent(
  File "C:\Users\solde\anaconda\envs\deeplabcut\Lib\site-packages\vispy\app\backends\_qt.py", line 676, in _keyEvent
    vispy_event = func(native=ev, key=key, text=str(ev.text()), modifiers=mod)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\solde\anaconda\envs\deeplabcut\Lib\site-packages\vispy\util\event.py", line 453, in __call__
    self._invoke_callback(cb, event)
  File "C:\Users\solde\anaconda\envs\deeplabcut\Lib\site-packages\vispy\util\event.py", line 471, in _invoke_callback
    _handle_exception(self.ignore_callback_errors,
  File "C:\Users\solde\anaconda\envs\deeplabcut\Lib\site-packages\vispy\util\event.py", line 469, in _invoke_callback
    cb(event)
  File "C:\Users\solde\anaconda\envs\deeplabcut\Lib\site-packages\napari\utils\key_bindings.py", line 512, in on_key_press
    event.handled = self.press_key(kb)
                    ^^^^^^^^^^^^^^^^^^
  File "C:\Users\solde\anaconda\envs\deeplabcut\Lib\site-packages\napari\utils\key_bindings.py", line 428, in press_key
    generator_or_callback = func()
                            ^^^^^^
  File "C:\Users\solde\anaconda\envs\deeplabcut\Lib\site-packages\napari\layers\points\_points_key_bindings.py", line 66, in paste
    layer._paste_data()
  File "C:\Users\solde\anaconda\envs\deeplabcut\Lib\site-packages\napari_deeplabcut\_widgets.py", line 249, in _paste_data
    offset = [self._slice_input[i] - self._clipboard["indices"][i] for i in not_disp]
              ~~~~~~~~~~~~~~~~~^^^
TypeError: '_SliceInput' object is not subscriptable

Anything else?

Thanks ahead for your help!

Code of Conduct

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

No fields configured for Bug.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions