Fix a bug in omega range calculation
This commit is contained in:
parent
a70b4fae57
commit
566cebb01a
@ -160,11 +160,8 @@ def parse_1D(fileobj, data_type):
|
|||||||
# "om" -> "omega"
|
# "om" -> "omega"
|
||||||
s["scan_motor"] = "omega"
|
s["scan_motor"] = "omega"
|
||||||
# overwrite metadata, because it only refers to the scan center
|
# overwrite metadata, because it only refers to the scan center
|
||||||
s["omega"] = np.linspace(
|
half_dist = (s["n_points"] - 1) / 2 * s["angle_step"]
|
||||||
s["omega"] - (s["n_points"] / 2) * s["angle_step"],
|
s["omega"] = np.linspace(s["omega"] - half_dist, s["omega"] + half_dist, s["n_points"])
|
||||||
s["omega"] + (s["n_points"] / 2) * s["angle_step"],
|
|
||||||
s["n_points"],
|
|
||||||
)
|
|
||||||
|
|
||||||
# subsequent lines with counts
|
# subsequent lines with counts
|
||||||
counts = []
|
counts = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user