Skip to content

Commit

Permalink
Sort data for proper raw fit plot
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim committed Jun 28, 2022
1 parent c402ceb commit 0b4a770
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,9 @@ def _radial_profile(radial_cutout, reg_bb, aperture, raw=False):
radial_img = radial_cutout.compressed() # data unit

if raw:
x_arr = radial_r
y_arr = radial_img
i_arr = np.argsort(radial_r)
x_arr = radial_r[i_arr]
y_arr = radial_img[i_arr]
else:
# This algorithm is from the imexam package,
# see licenses/IMEXAM_LICENSE.txt for more details
Expand Down

0 comments on commit 0b4a770

Please sign in to comment.