diff --git a/src/tools/bin/plotNumericalHeating b/src/tools/bin/plotNumericalHeating index 5064aef21c..6aec05a690 100755 --- a/src/tools/bin/plotNumericalHeating +++ b/src/tools/bin/plotNumericalHeating @@ -119,7 +119,7 @@ for sim in directories: mydir = sim+simDir # get relevant files with energy files = [f for f in os.listdir(mydir) - if os.path.isfile(os.path.join(mydir, f)) and (re.search('^.*_energy_all.dat', f) or re.search('^.fields_energy.dat', f))] + if os.path.isfile(os.path.join(mydir, f)) and (re.search('^.*_energy_all.dat', f) or re.search('^fields_energy.dat', f))] # check if file list is empty if len(files) == 0: sys.exit("There were no energy files in \"{}\".".format(mydir))