Skip to content

Commit 0361cca

Browse files
committed
Add start of omega period to measured omegas
This fixes an issue introduced in #786. We were missing the start of the omega period. This was not an issue if the start of the omega period was 0, but it was an issue otherwise, and likely caused some bad results. Fixes: #811 Signed-off-by: Patrick Avery <[email protected]>
1 parent 10a6691 commit 0361cca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hexrd/instrument/hedm_instrument.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1770,7 +1770,10 @@ def pull_spots(self, plane_data, grain_params,
17701770
frame_indices = [
17711771
ome_imgser.omega_to_frame(ome)[0] for ome in ome_eval
17721772
]
1773-
ome_edges = np.array(frame_indices) * delta_ome
1773+
ome_edges = (
1774+
np.array(frame_indices) * delta_ome +
1775+
np.degrees(ome_period[0])
1776+
)
17741777

17751778
if -1 in frame_indices:
17761779
if not quiet:

0 commit comments

Comments
 (0)