Skip to content

Commit

Permalink
[utils] Fix mainly docstrings and correct usage of true division
Browse files Browse the repository at this point in the history
  • Loading branch information
mtazzari authored and Frederik Beaujean committed May 14, 2018
1 parent 81a1972 commit 6208e01
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions python/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,23 +271,14 @@ def sweep_ref(I, Rmin, dR, nrow, ncol, dxy, inc, Dx=0., Dy=0., dtype_image='floa
# we shrink the x axis, since PA is the angle East of North of the
# the plane of the disk (orthogonal to the angular momentum axis)
# PA=0 is a disk with vertical orbital node (aligned along North-South)
<<<<<<< HEAD
xxx, yyy = np.meshgrid((x - Dx) / inc_cos, (y - Dy))
=======
xxx, yyy = np.meshgrid((x - Dx) / inc_cos,
(y - Dy))
>>>>>>> [utils] Add central_pixel() to compute brightness as average flux
x_meshgrid = np.sqrt(xxx ** 2. + yyy ** 2.)

f = interp1d(gridrad, I, kind='linear', fill_value=0.,
bounds_error=False, assume_sorted=True)
intensmap = f(x_meshgrid)

<<<<<<< HEAD
# central pixel: compute the average intensity
=======
# central pixel: compute the average brightness
>>>>>>> [utils] Add central_pixel() to compute brightness as average flux
intensmap[int(nrow / 2 + Dy / dxy), int(ncol / 2 - Dx / dxy)] = central_pixel(I, Rmin, dR, dxy)

# convert to Jansky
Expand Down

0 comments on commit 6208e01

Please sign in to comment.