Skip to content

Commit

Permalink
updating docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
cophus committed Jul 6, 2024
1 parent 084dd1b commit 78b67d3
Showing 1 changed file with 37 additions and 19 deletions.
56 changes: 37 additions & 19 deletions py4DSTEM/process/polar/polar_peaks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1263,25 +1263,43 @@ def make_orientation_histogram(
NOTE - currently assumes two fold rotation symmetry
TODO - add support for non two fold symmetry polardatacube
Args:
radial_ranges (np array): Size (N x 2) array for N radial bins, or (2,) for a single bin.
orientation_flip_sign (bool): Flip the direction of theta
orientation_offset_degrees (float): Offset for orientation angles
orientation_separate_bins (bool): whether to place multiple angles into multiple radial bins.
upsample_factor (float): Upsample factor
use_refined_peaks (float): Use refined peak positions
use_peak_sigma (float): Spread signal along annular direction using measured std.
theta_step_deg (float): Step size along annular direction in degrees
sigma_x (float): Smoothing in x direction before upsample
sigma_y (float): Smoothing in x direction before upsample
sigma_theta (float): Smoothing in annular direction (units of bins, periodic)
normalize_intensity_image (bool): Normalize to max peak intensity = 1, per image
normalize_intensity_stack (bool): Normalize to max peak intensity = 1, all images
progress_bar (bool): Enable progress bar
Returns:
orient_hist (array): 4D array containing Bragg peak intensity histogram
[radial_bin x_probe y_probe theta]
Parameters
----------
radial_ranges (np array)
Size (N x 2) array for N radial bins, or (2,) for a single bin.
orientation_flip_sign (bool)
Flip the direction of theta
orientation_offset_degrees (float)
Offset for orientation angles.
This value is a rotation of Q space with respect to R space.
orientation_separate_bins (bool)
whether to place multiple angles into multiple radial bins.
upsample_factor (float)
Upsample factor
use_refined_peaks (float)
Use refined peak positions
use_peak_sigma (float)
Spread signal along annular direction using measured std.
theta_step_deg (float)
Step size along annular direction in degrees
sigma_x (float)
Smoothing in x direction before upsample
sigma_y (float)
Smoothing in x direction before upsample
sigma_theta (float)
Smoothing in annular direction (units of bins, periodic)
normalize_intensity_image (bool)
Normalize to max peak intensity = 1, per image
normalize_intensity_stack (bool)
Normalize to max peak intensity = 1, all images
progress_bar (bool)
Enable progress bar
Returns
----------
orient_hist (array)
4D array containing Bragg peak intensity histogram
[radial_bin x_probe y_probe theta]
"""

# coordinates
Expand Down

0 comments on commit 78b67d3

Please sign in to comment.