Commit 0492494
committed
Ensure areas are positive in auto powder picking
The areas can be negative if the beam vector is in the opposite
direction from which HEXRD would normally expect it (HEXRD normally
expects a negative Z beam vector).
The powder picking code was assuming the areas are positive. Take
the absolute value to ensure that is the case. This fixes automatic
point picking for positive beam vectors.
Signed-off-by: Patrick Avery <[email protected]>1 parent 24211d1 commit 0492494
2 files changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
150 | 154 | | |
151 | 155 | | |
152 | 156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2686 | 2686 | | |
2687 | 2687 | | |
2688 | 2688 | | |
| 2689 | + | |
| 2690 | + | |
| 2691 | + | |
| 2692 | + | |
| 2693 | + | |
| 2694 | + | |
2689 | 2695 | | |
2690 | 2696 | | |
2691 | 2697 | | |
| |||
0 commit comments