Skip to content

Commit

Permalink
Fixed typo and set default coordinate_system to "pixel"
Browse files Browse the repository at this point in the history
  • Loading branch information
Caio Lima de Oliveira committed Jul 16, 2024
1 parent 7cae62e commit a6e995a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clmm/galaxycluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __init__(self, *args, validate_input=True, **kwargs):
self._check_types()
self.set_ra_lower(ra_low=0)

def _add_values(self, unique_id: str, ra: float, dec: float, z: float, coordinate_system: str, galcat: GCData, c):
def _add_values(self, unique_id: str, ra: float, dec: float, z: float, galcat: GCData, coordinate_system: str = "pixel"):
"""Add values for all attributes"""
self.unique_id = unique_id
self.ra = ra
Expand Down Expand Up @@ -284,12 +284,12 @@ def compute_tangential_and_cross_components(

# compute shears
angsep, tangential_comp, cross_comp = compute_tangential_and_cross_components(
coordinate_system=self.coordinate_system,
is_deltasigma=is_deltasigma,
ra_lens=self.ra,
dec_lens=self.dec,
geometry=geometry,
validate_input=self.validate_input,
coordinate_system=self.coordinate_system,
**cols,
)
if add:
Expand Down

0 comments on commit a6e995a

Please sign in to comment.