Skip to content

Commit

Permalink
Update equatorial bounds for negative k and kp
Browse files Browse the repository at this point in the history
  • Loading branch information
smcguire-cmu committed Jun 21, 2024
1 parent f32aa97 commit 47eb123
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/notebooks/boundaries.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@
"\n",
"\n",
"def eq(k, kp):\n",
" z = 2 / 3 * (2 - (kp + k) / nside)\n",
" phi = np.pi / 4 / nside * (nside - kp + k)\n",
" z = 2/3 * (2 - (abs(kp) + abs(k)) / nside)\n",
" phi = np.pi/4/nside * (nside - abs(kp) + abs(k))\n",
" phi = np.where(k >= 0, phi, -phi)\n",
" phi = np.where(kp >= 0, phi, np.pi - phi)\n",
" return phi, z\n",
"\n",
"\n",
Expand Down

0 comments on commit 47eb123

Please sign in to comment.