Do not try to read hkl values for dat files
This commit is contained in:
parent
16a47cf3b3
commit
4f1f03224c
@ -175,11 +175,7 @@ def parse_1D(fileobj, data_type):
|
||||
for name in col_names:
|
||||
s[name] = np.array(s[name])
|
||||
|
||||
try:
|
||||
s["h"], s["k"], s["l"] = map(float, metadata["title"].split()[-3:])
|
||||
except (ValueError, IndexError):
|
||||
s["h"] = s["k"] = s["l"] = float("nan")
|
||||
print("seems hkl is not in title")
|
||||
s["h"] = s["k"] = s["l"] = float("nan")
|
||||
|
||||
s["om"] = np.array(s["om"])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user