Skip to content

Commit

Permalink
Merge pull request #1604 from HEXRD/use-average-pixel-size
Browse files Browse the repository at this point in the history
Use average detector pixel size for cartesian view
  • Loading branch information
psavery authored Oct 27, 2023
2 parents 59922e6 + 176e49a commit f6e0081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hexrdgui/image_mode_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def auto_generate_cartesian_params(self):
cart_config = HexrdConfig().config['image']['cartesian']

# Round these to two for a nicer display
cart_config['pixel_size'] = round(average_size * 5, 2)
cart_config['pixel_size'] = round(average_size, 2)
cart_config['virtual_plane_distance'] = round(abs(average_dist), 2)

# Get the GUI to update with the new values
Expand Down

0 comments on commit f6e0081

Please sign in to comment.