simularium / simulariumio

Python package that converts simulation outputs to the format consumed by the Simularium viewer website
Apache License 2.0
5 stars 3 forks source link

Fix/use display names #184

Closed blairlyons closed 6 months ago

blairlyons commented 6 months ago

Time estimate or Size

small, 5 min

Problem

Agent names provided in DisplayData were not being saved out as the agent name in the type mapping, and so the raw type name in the spatial data was being displayed in the left panel of the viewer.

Display names are useful to, for example, display the same name for agents that have different geometry (which we need to do for ipub).

Solution

Fixed AgentData.get_type_ids_and_mapping() so that it uses the name in the display data, this method is called whenever a .simularium file is saved out.

Type of change

Change summary: