Skip to content

Commit

Permalink
Add option to set eta_step size for eta omega maps
Browse files Browse the repository at this point in the history
It was previously fixed to 0.25 degrees. However, the users may find
it beneficial to change this.

Smaller eta_step sizes might lead to less overlap between neighboring
peaks in the eta omega maps, for example.

Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
  • Loading branch information
psavery committed Oct 27, 2023
1 parent 380e7c4 commit 7ee5132
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hexrd/config/findorientations.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,12 @@ def bin_frames(self):
'find_orientations:orientation_maps:bin_frames', default=1
)

@property
def eta_step(self):
return self._cfg.get(
'find_orientations:orientation_maps:eta_step', default=0.25
)

@property
def file(self):
temp = self._cfg.get('find_orientations:orientation_maps:file',
Expand Down
1 change: 1 addition & 0 deletions hexrd/findorientations.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,7 @@ def generate_eta_ome_maps(cfg, hkls=None, save=True):
eta_ome = instrument.GenerateEtaOmeMaps(
imsd, cfg.instrument.hedm, plane_data,
active_hkls=active_hklIDs,
eta_step=cfg.find_orientations.orientation_maps.eta_step,
threshold=cfg.find_orientations.orientation_maps.threshold,
ome_period=ome_period)

Expand Down

0 comments on commit 7ee5132

Please sign in to comment.