lab-cosmo / chemiscope

An interactive structure/property explorer for materials and molecules
http://chemiscope.org
BSD 3-Clause "New" or "Revised" License
121 stars 29 forks source link

Changed structure viewer to use playback delay as a savable option #264

Closed ceriottm closed 1 year ago

ceriottm commented 1 year ago

It's nice to be able to set (and save) the playback delay, which was impossible because it was not part of the structure options. This adds a playbackDelay option that is saved in the dataset json, and is accessible from Python as well, and removes some (IMO) unnecessary special handling of playbackDelay inside ViewersGrid.

Also, moves from using tens of second to milliseconds as units, which seems more natural.