Skip to content

Commit

Permalink
Merge pull request #1614 from HEXRD/fewer-overlay-artists
Browse files Browse the repository at this point in the history
Refactor overlay drawing to use fewer artists
  • Loading branch information
psavery authored Nov 10, 2023
2 parents 7cbb36c + 47481ec commit 0f3ff71
Show file tree
Hide file tree
Showing 8 changed files with 267 additions and 131 deletions.
5 changes: 3 additions & 2 deletions hexrdgui/create_raw_mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ def convert_polar_to_raw(line_data, reverse_tth_distortion=True):
line_data[i] = line

raw_line_data = []
instr = create_hedm_instrument()
for line in line_data:
for key, panel in create_hedm_instrument().detectors.items():
raw = angles_to_pixels(line, panel)
for key, panel in instr.detectors.items():
raw = angles_to_pixels(line, panel, tvec_s=instr.tvec)
if all([np.isnan(x) for x in raw.flatten()]):
continue

Expand Down
Loading

0 comments on commit 0f3ff71

Please sign in to comment.