nexus: fix file matching

This commit is contained in:
Jaron Krogel 2020-07-29 17:50:40 -04:00
parent e2144a8ab9
commit f4f91aeae8
1 changed files with 1 additions and 1 deletions

View File

@ -512,7 +512,7 @@ class Qmcpack(Simulation):
kpoints = s.kpoints.copy()
kpoints_qmcpack = s.kpoints_qmcpack()
for file in input.filenames:
if file.startswith('qmc.g'):
if file.startswith(self.identifier+'.g'):
tokens = file.split('.')
twist_index = int(tokens[1].replace('g',''))
twist_filename = '{}.{}.twist_info.dat'.format(tokens[0],tokens[1])