FlyBrainLab / NeuroMynerva

NeuroMynerva integrates the Fruit Fly Brain Observatory (FFBO) Project with JupyterLab, providing CAD capabilities and a neuroscientific data exploration platform.
BSD 3-Clause "New" or "Revised" License
14 stars 5 forks source link

State Synchronization between Neu3D Widget and FBLClient #55

Closed TK-21st closed 3 years ago

TK-21st commented 3 years ago

Original Comment

It looks like fbl.widget_manager.last_active.model.states does not have updated info the second time I click on it. Like if I cleared the workspace, the neurons are still in the states.

I meant when I click on the button for the second time, the states are still the same as I click on it for the first time.

Problem Source

The callback fired when a mesh is added to a workspace is only updating the model.data field.

model.state is only updated after mouse interaction via this callback

TK-21st commented 3 years ago

Fixed in 541bdf6