You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Occasionally when using the Distance functionality in the GUI, depending on some previous interactions with the scene, the code will throw a ValueError which gets printed below the widget.
---------------------------------------------------------------------------ValueErrorTraceback (mostrecentcalllast)
~/github/exatomic/exatomic/widgets/widget.pyin_atom_df(c)
504c.value=notc.value505ifc.value:
-->506self._update_output(out)
507#link((self.scenes[0].selected, 'value'), (selected, 'value'))508else:
~/github/exatomic/exatomic/widgets/widget.pyin_update_output(self, out)
471idx[sdx] = [int(''.join(filter(lambdax: x.isdigit(), i))) foriinscn.selected['idx']]
472iflen(idx[sdx])%2!=0:
-->473raiseValueError("Must select an even number of atoms. Last selected atom has been truncated.")
474atom_coords=self._df[sdx].atom.groupby('frame').get_group(scn.frame_idx). \
475reset_index(drop=True).loc[[iforiinidx[sdx]], ['x', 'y', 'z']]
ValueError: Mustselectanevennumberofatoms. Lastselectedatomhasbeentruncated.
To Reproduce
Relies on multiple GUI interactions (may be intermittent). Easier to reproduce when you have multiple universes in a single widget.
Expected behavior
I think that critical errors for the computational kernel that prevent functionality in the GUI should be handled and logged but not displayed to the front end.
Desktop (please complete the following information):
OS: WS Linux 4.4.0-17134-Microsoft
Browser: Chrome (Windows 10)
Version: 73.0.3683.103
Additional context
This may only be reproducible in the case with multiple universes per UniverseWidget
The text was updated successfully, but these errors were encountered:
I'll look into this. I think what I initially came up with was too unstable, @adamphil also showed some possible issues with the visualization in the UniverseWidget.
Describe the bug
Occasionally when using the Distance functionality in the GUI, depending on some previous interactions with the scene, the code will throw a ValueError which gets printed below the widget.
To Reproduce
Relies on multiple GUI interactions (may be intermittent). Easier to reproduce when you have multiple universes in a single widget.
Expected behavior
I think that critical errors for the computational kernel that prevent functionality in the GUI should be handled and logged but not displayed to the front end.
Desktop (please complete the following information):
Additional context
This may only be reproducible in the case with multiple universes per
UniverseWidget
The text was updated successfully, but these errors were encountered: