5555 mapAngle , \
5656 oscillAnglesOfHKLs , \
5757 rowNorm , \
58- validateAngleRanges
58+ unitRowVector
5959from hexrd .xrd import xrdutil
6060from hexrd .xrd .crystallography import PlaneData
6161from hexrd import constants as ct
@@ -600,7 +600,7 @@ def extract_line_positions(self, plane_data, imgser_dict,
600600 tth_ranges = np .degrees (plane_data .getMergedRanges ()[1 ])
601601 tth_tols = np .vstack ([i [1 ] - i [0 ] for i in tth_ranges ])
602602 else :
603- tth_tols = np .ones (len (plane_data ))* tth_tol
603+ tth_tols = np .ones (len (plane_data ))* tth_tol
604604
605605 # =====================================================================
606606 # LOOP OVER DETECTORS
@@ -624,7 +624,8 @@ def extract_line_positions(self, plane_data, imgser_dict,
624624
625625 # make rings
626626 pow_angs , pow_xys = panel .make_powder_rings (
627- plane_data , merge_hkls = True , delta_tth = tth_tol , delta_eta = eta_tol )
627+ plane_data , merge_hkls = True ,
628+ delta_tth = tth_tol , delta_eta = eta_tol )
628629
629630 # =================================================================
630631 # LOOP OVER RING SETS
@@ -681,7 +682,7 @@ def extract_line_positions(self, plane_data, imgser_dict,
681682 ims_data = []
682683 for j_p in np .arange (len (images )):
683684 # catch interpolation type
684- image = images [j_p ]
685+ image = images [j_p ]
685686 if do_interpolation :
686687 tmp = panel .interpolate_bilinear (
687688 xy_eval ,
@@ -1552,13 +1553,13 @@ def clip_to_panel(self, xy, buffer_edges=True):
15521553 )
15531554 on_panel = np .logical_and (on_panel_x , on_panel_y )
15541555 elif not buffer_edges :
1555- on_panel_x = np .logical_and (
1556- xy [:, 0 ] >= - xlim , xy [:, 0 ] <= xlim
1557- )
1558- on_panel_y = np .logical_and (
1559- xy [:, 1 ] >= - ylim , xy [:, 1 ] <= ylim
1560- )
1561- on_panel = np .logical_and (on_panel_x , on_panel_y )
1556+ on_panel_x = np .logical_and (
1557+ xy [:, 0 ] >= - xlim , xy [:, 0 ] <= xlim
1558+ )
1559+ on_panel_y = np .logical_and (
1560+ xy [:, 1 ] >= - ylim , xy [:, 1 ] <= ylim
1561+ )
1562+ on_panel = np .logical_and (on_panel_x , on_panel_y )
15621563 return xy [on_panel , :], on_panel
15631564
15641565 def cart_to_angles (self , xy_data ):
@@ -1743,7 +1744,7 @@ def make_powder_rings(
17431744 eta_centers = eta_edges [:- 1 ] + del_eta
17441745
17451746 # !!! get chi and ome from rmat_s
1746- chi = np .arctan2 (rmat_s [2 , 1 ], rmat_s [1 , 1 ])
1747+ # chi = np.arctan2(rmat_s[2, 1], rmat_s[1, 1])
17471748 ome = np .arctan2 (rmat_s [0 , 2 ], rmat_s [0 , 0 ])
17481749
17491750 # make list of angle tuples
0 commit comments