neurodroid / stimfit

A program for viewing and analyzing electrophysiological data
GNU General Public License v2.0
52 stars 25 forks source link

Move traces keyboard commands unresponsive in concatenated sweeps/Event Detection #90

Open Sverreg opened 3 years ago

Sverreg commented 3 years ago

The move traces keybindings (Ctrl/Shift + -> or <-) do not work in concatenated sweeps in Stimfit 0.16.0 on Ubuntu 20.04. They work before the sweeps are concatenated, or if other commands that create a new window are used (eg. filtering).

I tested solutions from #33, spamming the magnifying glass or selecting the trace window with the cursor does not fix the issue. The traces window is highlighted when I click it.

If I create a new window (of a selected concatenated sweep), the keyboard commands work in the new window, great! But, when I run event detection it breaks again. It looks like the issue here is that events are always selected, not the Traces window (see orange highlight around the leftmost event-box in screenshot) when the traces window is clicked. Running Erase All Events restores keyboard move functionality. Creating a new window still works, but the events are not copied so that doesn't help much.

image

schloegl commented 6 months ago

Testing this on Stimfit 0.16.3 on Linux, the issue can be reproduced with the following steps:

  1. Select severall or all sweeps, and
  2. Menu->Edit->"Concatenate Selected Sweeps (multiple channels)" then the scaling keys +/+ and +/- do not do anything.

Interestingly, when selectiong
Menu->Edit->"New Window with ... " -> and any of the 3 options, the the scaling keys +/+ and +/- are usable. However, only the data of a single channel is shown