Update param_study_moduls.py

changed the delimiter to ","
This commit is contained in:
JakHolzer 2020-10-13 17:50:26 +02:00 committed by GitHub
parent a25fab93ca
commit 6edc9c2ec4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,11 +15,11 @@ def load_dats(filepath):
data_type = "txt"
file_list = list()
with open(filepath, "r") as infile:
col_names = next(infile).split()
col_names = next(infile).split(",")
for line in infile:
if "END" in line:
break
file_list.append(tuple(line.split()))
file_list.append(tuple(line.split(",")))
elif isinstance(filepath, list):
data_type = "list"
file_list = filepath