Update param_study_moduls.py
changed the delimiter to ","
This commit is contained in:
parent
a25fab93ca
commit
6edc9c2ec4
@ -15,11 +15,11 @@ def load_dats(filepath):
|
|||||||
data_type = "txt"
|
data_type = "txt"
|
||||||
file_list = list()
|
file_list = list()
|
||||||
with open(filepath, "r") as infile:
|
with open(filepath, "r") as infile:
|
||||||
col_names = next(infile).split()
|
col_names = next(infile).split(",")
|
||||||
for line in infile:
|
for line in infile:
|
||||||
if "END" in line:
|
if "END" in line:
|
||||||
break
|
break
|
||||||
file_list.append(tuple(line.split()))
|
file_list.append(tuple(line.split(",")))
|
||||||
elif isinstance(filepath, list):
|
elif isinstance(filepath, list):
|
||||||
data_type = "list"
|
data_type = "list"
|
||||||
file_list = filepath
|
file_list = filepath
|
||||||
|
Loading…
x
Reference in New Issue
Block a user