-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
bugSomething isn't workingSomething isn't working
Description
System and Software
- simulariumio Version: 1.7.1
- Python Version: 3.10.10
- Operating System: linux
Description
While appending new AgentData obtained from the CytosimConverter to an existing TrajectoryData object, I ran into the following issues:
used_uids,new_agent_indexandraw_uidare being saved as floats instead of ints, which caused issues during indexing- The
result.display_datadictionary was not updated during the call toappend_agents, which resulted in the added agents defaulting to a sphere geometry - the default buffer size used by
get_copy_with_increased_buffer_sizewas too large (1000) for my use case. This resulted in 1000 elements being added every step even when they were not necessary.
Expected Behavior
New AgentData should be added to the existing TrajectoryData with its DisplayData carried over.
Reproduction
- Create a
CytosimDataobject (fiber_data) from a cytosim output file - Create a
CytosimConverterobject (cytosim_converter) from theCytosimDataobject. - Repeat steps 1 and 2 with a different output file to get a new
CytosimConverterobjectnew_cytosim_converter - Append new agent data to the original using:
trajectory_data = cytosim_converter._data # this is a TrajectoryData object
new_agent_data = new_cytosim_converter._data.agent_data # this is an AgentData object
trajectory_data.append_agents(new_agent_data)
I can share the data and a notebook with the reproduction example if needed.
More Information
Local changes I made to fix these issues are available at https://github.com/mogres/simulariumio/tree/multiple_cytosim_repeats
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
🌳 Backlog