Skip to content

Commit

Permalink
reverted two files to try to match main
Browse files Browse the repository at this point in the history
  • Loading branch information
cavestruz committed Jul 18, 2024
1 parent 2e150b8 commit 3845e85
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions clmm/galaxycluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,6 @@ def compute_tangential_and_cross_components(
Name of the column to be added to the `galcat` astropy table that will contain the
cross component computed from columns `shape_component1` and `shape_component2`.
Default: `ex`
coordinate_system: str, optional
Coordinate system of the ellipticity components. Options are 'pixel' or 'sky'.
Default: 'pixel'
geometry: str, optional
Sky geometry to compute angular separation.
Options are curve (uses astropy) or flat.
Expand Down
3 changes: 0 additions & 3 deletions clmm/support/mock_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,6 @@ def _generate_galaxy_catalog(
_, posangle = c_cl.separation(c_gal).rad, c_cl.position_angle(c_gal).rad
posangle += 0.5 * np.pi # for right convention

if coordinate_system == "sky":
posangle = np.pi - posangle # ellipticity coordinate system conversion

# corresponding shear1,2 components
gam1 = -gamt * np.cos(2 * posangle) + gamx * np.sin(2 * posangle)
gam2 = -gamt * np.sin(2 * posangle) - gamx * np.cos(2 * posangle)
Expand Down

0 comments on commit 3845e85

Please sign in to comment.