Postproc hkl indices only for ccl files
This commit is contained in:
parent
426bb16792
commit
ed8e6d262f
@ -172,6 +172,9 @@ def parse_1D(fileobj, data_type):
|
||||
counts.extend(map(float, next(fileobj).split()))
|
||||
s["Counts"] = np.array(counts)
|
||||
|
||||
if s["h"].is_integer() and s["k"].is_integer() and s["l"].is_integer():
|
||||
s["h"], s["k"], s["l"] = map(int, (s["h"], s["k"], s["l"]))
|
||||
|
||||
scan.append({**metadata, **s})
|
||||
|
||||
elif data_type == ".dat":
|
||||
@ -230,10 +233,6 @@ def parse_1D(fileobj, data_type):
|
||||
else:
|
||||
print("Unknown file extention")
|
||||
|
||||
for s in scan:
|
||||
if s["h"].is_integer() and s["k"].is_integer() and s["l"].is_integer():
|
||||
s["h"], s["k"], s["l"] = map(int, (s["h"], s["k"], s["l"]))
|
||||
|
||||
return scan
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user