Skip to content

Simularium file info version 3

Compare
Choose a tag to compare
@meganrm meganrm released this 27 Sep 23:04
· 769 commits to main since this release

Enhancements:

The viewer was updated to accept simularium trajectoryInfo version 3 data

The new file format includes an optional geometry field.

geometry: 
    displayType:  type “SPHERE”, “CUBE”, “GIZMO”, “FIBER”, “PDB”, or “OBJ”. //Default to “SPHERE”, or “FIBER” if subpoints
    url: string. // local path or web URL, web URLs are required for streaming or loading the trajectory by URL
    color: string. // hex value 

This allows users to specify their own geometry files, either by loading them along with their local .simularium file or by including a url to a publicly hosted file.

Warn user if server connection is invalid

Possible scenarios of issues with websockets connection:

  1. fail to establish connection
  2. connect, but becomes invalid
  3. valid connection, but slow operation

Each will result in a warning to the user of what's happened.