Changed energy_reader genfromtxt to loadtxt

This commit is contained in:
sebastiankloth 2022-05-25 16:39:41 +02:00
parent 94a30b1d40
commit 39bccf8792

View File

@ -242,7 +242,7 @@ def energy_reader(file, energies=None):
header = i header = i
break break
data = np.genfromtxt(f"{directory}/tmp.xvg", skip_header=header) data = np.loadtxt(f"{directory}/tmp.xvg", skiprows=header)
df = pd.DataFrame({"Time":data[:,0]}) df = pd.DataFrame({"Time":data[:,0]})
for i, label in enumerate(labels): for i, label in enumerate(labels):