Add code for 1D detector #69

Merged
usov_i merged 118 commits from det1d into master 2020-10-22 12:07:50 +02:00
13 changed files with 1843 additions and 8 deletions
Showing only changes of commit 6edc9c2ec4 - Show all commits

View File

@ -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