Skip to content

Commit

Permalink
Revert "add coordinates_space.py (gwastro#4289)"
Browse files Browse the repository at this point in the history
This reverts commit e3418c7.
  • Loading branch information
spxiwh committed Jan 8, 2024
1 parent ff45fc1 commit c522ab8
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 1,905 deletions.
17 changes: 2 additions & 15 deletions pycbc/coordinates/base.py → pycbc/coordinates.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,7 @@
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


#
# =============================================================================
#
# Preamble
#
# =============================================================================
#
"""
Base coordinate transformations, this module provides transformations between
cartesian and spherical coordinates.
""" Coordinate transformations.
"""
import numpy

Expand Down Expand Up @@ -71,7 +60,6 @@ def cartesian_to_spherical_azimuthal(x, y):
phi = numpy.arctan2(y, x)
return phi % (2 * numpy.pi)


def cartesian_to_spherical_polar(x, y, z):
""" Calculates the polar angle in spherical coordinates from Cartesian
coordinates. The polar angle is in [0,pi].
Expand Down Expand Up @@ -153,8 +141,7 @@ def spherical_to_cartesian(rho, phi, theta):
z = rho * numpy.cos(theta)
return x, y, z


__all__ = ['cartesian_to_spherical_rho', 'cartesian_to_spherical_azimuthal',
'cartesian_to_spherical_polar', 'cartesian_to_spherical',
'spherical_to_cartesian',
]
]
37 changes: 0 additions & 37 deletions pycbc/coordinates/__init__.py

This file was deleted.

Loading

0 comments on commit c522ab8

Please sign in to comment.