Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enh browserfig UI events #12819

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from

some bugfixes and cleanup

2734823
Select commit
Loading
Failed to load commit list.
Draft

Enh browserfig UI events #12819

some bugfixes and cleanup
2734823
Select commit
Loading
Failed to load commit list.
Azure Pipelines / mne-tools.mne-python failed Sep 10, 2024 in 1h 5m 42s

Build #20240910.9 had test failures

Details

Tests

  • Failed: 8 (0.10%)
  • Passed: 7,402 (89.47%)
  • Other: 863 (10.43%)
  • Total: 8,273
Code coverage

  • 9698 of 42007 branches covered (23.09%)
  • 32908 of 118715 lines covered (27.72%)

Annotations

Check failure on line 4313 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / mne-tools.mne-python

Build log #L4313

Cmd.exe exited with code '1'.

Check failure on line 24 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / mne-tools.mne-python

Build log #L24

There are one or more test failures detected in result files. Detailed summary of published test results can be viewed in the Tests tab.

Check failure on line 23 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / mne-tools.mne-python

Build log #L23

There are one or more test failures detected in result files. Detailed summary of published test results can be viewed in the Tests tab.

Check failure on line 4314 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / mne-tools.mne-python

Build log #L4314

Cmd.exe exited with code '1'.

Check failure on line 1 in test_plot_epochs_clicks[matplotlib]

See this annotation in the file changed.

@azure-pipelines azure-pipelines / mne-tools.mne-python

test_plot_epochs_clicks[matplotlib]

IndexError: index 18 is out of bounds for axis 0 with size 7
Raw output
mne\viz\tests\test_epochs.py:138: in test_plot_epochs_clicks
    fig._fake_click((0.5, 0.5), ax=fig.mne.ax_hscroll)
mne\viz\_mpl_figure.py:2289: in _fake_click
    _fake_click(
mne\viz\utils.py:802: in _fake_click
    fig.canvas.callbacks.process(
C:\hostedtoolcache\windows\Python\3.12.4\x64\Lib\site-packages\matplotlib\cbook.py:298: in process
    func(*args, **kwargs)
mne\viz\_mpl_figure.py:814: in _buttonpress
    if self._check_update_hscroll_clicked(event):
mne\viz\_mpl_figure.py:1758: in _check_update_hscroll_clicked
    self._publish_time_browse_event(time)
mne\viz\_mpl_figure.py:2360: in _publish_time_browse_event
    t_end = onsets[epoch_num_end - 1] + self.mne.inst.tmax
E   IndexError: index 18 is out of bounds for axis 0 with size 7

Check failure on line 1 in test_plot_epochs_keypresses[matplotlib]

See this annotation in the file changed.

@azure-pipelines azure-pipelines / mne-tools.mne-python

test_plot_epochs_keypresses[matplotlib]

IndexError: index 18 is out of bounds for axis 0 with size 7
Raw output
mne\viz\tests\test_epochs.py:201: in test_plot_epochs_keypresses
    fig._fake_keypress(key)
mne\viz\_mpl_figure.py:2252: in _fake_keypress
    _fake_keypress(fig, key)
mne\viz\utils.py:813: in _fake_keypress
    fig.canvas.callbacks.process(
C:\hostedtoolcache\windows\Python\3.12.4\x64\Lib\site-packages\matplotlib\cbook.py:298: in process
    func(*args, **kwargs)
mne\viz\_mpl_figure.py:701: in _keypress
    self._publish_time_browse_event(t_start)
mne\viz\_mpl_figure.py:2360: in _publish_time_browse_event
    t_end = onsets[epoch_num_end - 1] + self.mne.inst.tmax
E   IndexError: index 18 is out of bounds for axis 0 with size 7

Check failure on line 1 in test_plot_epochs_ctf[matplotlib]

See this annotation in the file changed.

@azure-pipelines azure-pipelines / mne-tools.mne-python

test_plot_epochs_ctf[matplotlib]

IndexError: index 9 is out of bounds for axis 0 with size 9
Raw output
mne\viz\tests\test_epochs.py:478: in test_plot_epochs_ctf
    fig._fake_keypress(key)
mne\viz\_mpl_figure.py:2252: in _fake_keypress
    _fake_keypress(fig, key)
mne\viz\utils.py:813: in _fake_keypress
    fig.canvas.callbacks.process(
C:\hostedtoolcache\windows\Python\3.12.4\x64\Lib\site-packages\matplotlib\cbook.py:298: in process
    func(*args, **kwargs)
mne\viz\_mpl_figure.py:736: in _keypress
    self._publish_time_browse_event(
mne\viz\_mpl_figure.py:2366: in _publish_time_browse_event
    publish(self, TimeBrowse(time_start=t_start, time_end=t_end))
<decorator-gen-98>:12: in publish
    ???
mne\viz\ui_events.py:154: in publish
    callback(event=event)
mne\viz\_mpl_figure.py:2377: in _on_time_browse_event
    events = self.mne.inst.events[self.mne.inst.selection]
E   IndexError: index 9 is out of bounds for axis 0 with size 9

Check failure on line 1 in test_plot_raw_traces[matplotlib]

See this annotation in the file changed.

@azure-pipelines azure-pipelines / mne-tools.mne-python

test_plot_raw_traces[matplotlib]

AssertionError: assert ['MEG 0112', 'MEG 0133', 'MEG 0121'] == ['MEG 0121', 'MEG 0111', 'MEG 0122']
  
  At index 0 diff: #x1B[0m#x1B[33m'#x1B[39;49;00m#x1B[33mMEG 0112#x1B[39;49;00m#x1B[33m'#x1B[39;49;00m#x1B[90m#x1B[39;49;00m != #x1B[0m#x1B[33m'#x1B[39;49;00m#x1B[33mMEG 0121#x1B[39;49;00m#x1B[33m'#x1B[39;49;00m#x1B[90m#x1B[39;49;00m
  
  Full diff:
  #x1B[0m#x1B[90m #x1B[39;49;00m [#x1B[90m#x1B[39;49;00m
  #x1B[92m+     'MEG 0112',#x1B[39;49;00m#x1B[90m#x1B[39;49;00m
  #x1B[92m+     'MEG 0133',#x1B[39;49;00m#x1B[90m#x1B[39;49;00m
  #x1B[90m #x1B[39;49;00m     'MEG 0121',#x1B[90m#x1B[39;49;00m
  #x1B[91m-     'MEG 0111',#x1B[39;49;00m#x1B[90m#x1B[39;49;00m
  #x1B[91m-     'MEG 0122',#x1B[39;49;00m#x1B[90m#x1B[39;49;00m
  #x1B[90m #x1B[39;49;00m ]#x1B[90m#x1B[39;49;00m
Raw output
mne\viz\tests\test_raw.py:587: in test_plot_raw_traces
    assert labels == [raw.ch_names[5], raw.ch_names[2], raw.ch_names[3]]
E   AssertionError: assert ['MEG 0112', 'MEG 0133', 'MEG 0121'] == ['MEG 0121', 'MEG 0111', 'MEG 0122']
E     
E     At index 0 diff: #x1B[0m#x1B[33m'#x1B[39;49;00m#x1B[33mMEG 0112#x1B[39;49;00m#x1B[33m'#x1B[39;49;00m#x1B[90m#x1B[39;49;00m != #x1B[0m#x1B[33m'#x1B[39;49;00m#x1B[33mMEG 0121#x1B[39;49;00m#x1B[33m'#x1B[39;49;00m#x1B[90m#x1B[39;49;00m
E     
E     Full diff:
E     #x1B[0m#x1B[90m #x1B[39;49;00m [#x1B[90m#x1B[39;49;00m
E     #x1B[92m+     'MEG 0112',#x1B[39;49;00m#x1B[90m#x1B[39;49;00m
E     #x1B[92m+     'MEG 0133',#x1B[39;49;00m#x1B[90m#x1B[39;49;00m
E     #x1B[90m #x1B[39;49;00m     'MEG 0121',#x1B[90m#x1B[39;49;00m
E     #x1B[91m-     'MEG 0111',#x1B[39;49;00m#x1B[90m#x1B[39;49;00m
E     #x1B[91m-     'MEG 0122',#x1B[39;49;00m#x1B[90m#x1B[39;49;00m
E     #x1B[90m #x1B[39;49;00m ]#x1B[90m#x1B[39;49;00m