Skip to content

Commit fca1f0a

Browse files
committed
update utils
1 parent a7cb9a3 commit fca1f0a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ensemble_md/utils/coordinate_swap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def get_miss_coord(mol_align, mol_ref, name_align, name_ref, df_atom_swap, dir,
442442
for a in range(mol_align_select.n_atoms):
443443
if a != conn0_align:
444444
mol_align_select.xyz[0, a, :] = _rotate_point_around_axis(mol_align_select.xyz[0, a, :], mol_ref_select.xyz[0, conn0_ref, :], axis_rot, theta_min) # noqa: E501
445-
445+
446446
# Add coordinates to df
447447
for r in range(len(df_atom_swap.index)):
448448
if df_atom_swap.iloc[r]['Direction'] == 'miss' and df_atom_swap.iloc[r]['Swap'] == dir:
@@ -1184,7 +1184,7 @@ def get_names(input, resname):
11841184
continue
11851185
while '' in line_sep:
11861186
line_sep.remove('')
1187-
if line_sep[0] == '\n':
1187+
if line_sep[0] == '\n' or line == '[ bonds ]\n':
11881188
start_line = l+2
11891189
break
11901190
if line_sep[3] == resname:

ensemble_md/utils/gmx_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ def deter_atom_order(mol_file, resname):
438438
split_line.remove('')
439439
if resname in split_line[0]:
440440
if len(split_line[1]) > 5:
441-
split_line = coordinate_swap.sep_merge(split_line)
441+
split_line = coordinate_swap._sep_merge(split_line)
442442
atom_order.append(split_line[1])
443443
elif len(atom_order) != 0:
444444
break

0 commit comments

Comments
 (0)