Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions simulariumio/nerdss/nerdss_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def _read_pdb_files(self, input_data: NerdssData) -> AgentData:

# need our own write-able n_subpoints array
n_subpoints = np.zeros_like(agent_data.n_subpoints)

for timestep in range(n_timesteps):
n_fibers = len(fiber_positions[timestep])
n_atoms = int(agent_data.n_agents[timestep])
Expand All @@ -155,7 +155,7 @@ def _read_pdb_files(self, input_data: NerdssData) -> AgentData:
agent_data.types[timestep].append(bonds_display_data.name)
agent_data.unique_ids[timestep][agent_index + n_atoms] = next_uid
next_uid += 1
agent_data.n_subpoints = n_subpoints # overwrite with our own array
agent_data.n_subpoints = n_subpoints # overwrite with our own array
return agent_data

def _read(self, input_data: NerdssData) -> TrajectoryData:
Expand Down
Loading