Skip to content

Commit

Permalink
Fix minor error with topology reading
Browse files Browse the repository at this point in the history
  • Loading branch information
ajfriedman22 committed Oct 10, 2024
1 parent 2fcee10 commit cf8b95f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ensemble_md/utils/gmx_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,8 @@ def read_top(file_name, resname):
line_sep.remove('')
itp_files.append(line_sep[-1].strip('\n""'))
file_dir, file_name = os.path.split(file_name)
if file_dir == '':
file_dir = '.'
for file in itp_files:
if os.path.exists(f'{file_dir}/{file}'):
input_file = open(f'{file_dir}/{file}').readlines()
Expand Down

0 comments on commit cf8b95f

Please sign in to comment.