Skip to content

Commit

Permalink
Fix fiber translation
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicasyu committed Nov 1, 2023
1 parent 7cff34d commit dc30d8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/arcade_collection/convert/convert_to_simularium.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ def convert_to_simularium(
agent_data.positions[:, :, 1] = (width / 2.0 - agent_data.positions[:, :, 1]) * ds
agent_data.positions[:, :, 2] = (agent_data.positions[:, :, 2] - height / 2.0) * dz

agent_data.subpoints[:, :, 0::3] = (agent_data.subpoints[:, :, 0::3] - length / 2.0) * ds
agent_data.subpoints[:, :, 1::3] = (width / 2.0 - agent_data.subpoints[:, :, 1::3]) * ds
agent_data.subpoints[:, :, 2::3] = (agent_data.subpoints[:, :, 2::3] - height / 2.0) * dz
agent_data.subpoints[:, :, 0::3] = (agent_data.subpoints[:, :, 0::3]) * ds
agent_data.subpoints[:, :, 1::3] = (-agent_data.subpoints[:, :, 1::3]) * ds
agent_data.subpoints[:, :, 2::3] = (agent_data.subpoints[:, :, 2::3]) * dz

return TrajectoryConverter(
TrajectoryData(
Expand Down

0 comments on commit dc30d8e

Please sign in to comment.