Skip to content

Generation of GIFs fails #27

@rugenni

Description

@rugenni

Describe the bug
Hi, I am trying to plot a gif for a dia-PASEF method I created with the tool. It works when I use the "diaPASEF short gradient" method but it fails when I use methods with more diaPASEF scans (including diaPASEF long gradient).

To Reproduce
Always fails when I use methods with for example 16 diaPASEF scans.

Logs
ERROR:bokeh.server.protocol_handler:error handling message
message: Message 'PATCH-DOC' content: {'events': [{'kind': 'MessageSent', 'msg_type': 'bokeh_event', 'msg_data': {'type': 'event', 'name': 'button_click', 'values': {'type': 'map', 'entries': [['model', {'id': 'p1545'}]]}}}]}
error: IndexError('list index out of range')
Traceback (most recent call last):
File "bokeh\server\protocol_handler.py", line 97, in handle
work = await handler(message, connection)
File "bokeh\server\session.py", line 94, in _needs_document_lock_wrapper
result = func(self, *args, **kwargs)
File "bokeh\server\session.py", line 288, in _handle_patch
message.apply_to_document(self.document, self)
File "bokeh\protocol\messages\patch_doc.py", line 104, in apply_to_document
invoke_with_curdoc(doc, lambda: doc.apply_json_patch(self.payload, setter=setter))
File "bokeh\document\callbacks.py", line 443, in invoke_with_curdoc
return f()
File "bokeh\protocol\messages\patch_doc.py", line 104, in
invoke_with_curdoc(doc, lambda: doc.apply_json_patch(self.payload, setter=setter))
File "bokeh\document\document.py", line 376, in apply_json_patch
DocumentPatchedEvent.handle_event(self, event, setter)
File "bokeh\document\events.py", line 246, in handle_event
event_cls._handle_event(doc, event)
File "bokeh\document\events.py", line 281, in _handle_event
cb(event.msg_data)
File "bokeh\document\callbacks.py", line 390, in trigger_event
model._trigger_event(event)
File "bokeh\util\callback_manager.py", line 113, in _trigger_event
self.document.callbacks.notify_event(cast(Model, self), event, invoke)
File "bokeh\document\callbacks.py", line 260, in notify_event
invoke_with_curdoc(doc, callback_invoker)
File "bokeh\document\callbacks.py", line 443, in invoke_with_curdoc
return f()
File "bokeh\util\callback_manager.py", line 109, in invoke
cast(EventCallbackWithEvent, callback)(event)
File "panel\reactive.py", line 491, in _server_event
self._comm_event(doc, event)
File "panel\reactive.py", line 478, in _comm_event
state._handle_exception(e)
File "panel\io\state.py", line 436, in _handle_exception
raise exception
File "panel\reactive.py", line 476, in _comm_event
self._process_bokeh_event(doc, event)
File "panel\reactive.py", line 413, in _process_bokeh_event
self._process_event(event)
File "panel\widgets\button.py", line 243, in _process_event
self.clicks += 1
File "param\parameterized.py", line 528, in _f
instance_param.set(obj, val)
File "param\parameterized.py", line 530, in _f
return f(self, obj, val)
File "param\parameters.py", line 543, in set
super().set(obj,val)
File "param\parameterized.py", line 530, in _f
return f(self, obj, val)
File "param\parameterized.py", line 1553, in set
obj.param._call_watcher(watcher, event)
File "param\parameterized.py", line 2526, in call_watcher
self
._execute_watcher(watcher, (event,))
File "param\parameterized.py", line 2506, in _execute_watcher
watcher.fn(*args, **kwargs)
File "pydiaid\diapasef\gui_diapasef.py", line 1456, in run_gif
syP_plots.generate_gif_single_windows(
File "pydiaid\synchropasef\plots.py", line 620, in generate_gif_single_windows
box = PatchCollection(box_temp, facecolors=color_list[window_color][num], alpha=0.5, edgecolor="None")
IndexError: list index out of range

Version (please complete the following information):

  • Installation Type [One-Click Installer]
  • If no log is available, provide the following:
    • Platform information
      • system: Windows 11
    • Python information:
      • pydiaid version: 0.0.40
      • python version: 3.10 64 Bit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions