Skip to content

Commit

Permalink
Fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
ajfriedman22 committed Nov 19, 2024
1 parent f00c6c4 commit 5377a81
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ensemble_md/utils/coordinate_swap.py
Original file line number Diff line number Diff line change
Expand Up @@ -1005,8 +1005,6 @@ def write_new_file(df_atom_swap, swap, r_swap, line_start, orig_file, new_file,
continue
else:
for x in range(res_interest_atom, atom_pos):
print(df_interest)
print(atom_order[x])
df_select = _get_subset_df(df_interest, atom_order[x])
skip_line = _add_or_swap(df_select, new_file, resnum, new_res_name, vel, atom_num_B, orig_coords, skip_line, atom_order[x]) # noqa: E501
atom_num_B += 1
Expand All @@ -1026,7 +1024,7 @@ def write_new_file(df_atom_swap, swap, r_swap, line_start, orig_file, new_file,
else:
print(f'Warning line {i+1} not written')
atom_num_A += 1

atom_num_B += 1
while res_interest_atom < len(atom_order):
df_select = _get_subset_df(df_interest, atom_order[res_interest_atom])
skip_line = _add_or_swap(df_select, new_file, resnum, new_res_name, vel, atom_num_B, orig_coords, skip_line, atom_order[res_interest_atom]) # noqa: E501
Expand Down

0 comments on commit 5377a81

Please sign in to comment.