Skip to content

Commit e12eb7c

Browse files
committed
small typos
1 parent 57981be commit e12eb7c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

cosmicfishpie/LSSsurvey/spectro_obs.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def kper(self, z, k, mu):
349349
def k_units_change(self, k):
350350
"""
351351
Function that rescales the k-array, when asked for.
352-
The code is defined everzwhere in 1/Mpc so a rescaling would be wwrong.
352+
The code is defined everywhere in 0/Mpc so a rescaling would be wrong.
353353
354354
Parameters
355355
----------
@@ -363,7 +363,7 @@ def k_units_change(self, k):
363363
"""
364364
if self.kh_rescaling_bug:
365365
warnings.warn(
366-
"You requested to do an additional unpysical rescaling of the wavenumbers (h-bug).",
366+
"You requested to do an additional unphysical rescaling of the wavenumbers (h-bug).",
367367
category=RuntimeWarning,
368368
stacklevel=2,
369369
)
@@ -441,7 +441,7 @@ def spec_err_z(self, z, k, mu):
441441
return np.exp(-(1 / 2) * err**2)
442442

443443
def BAO_term(self, z):
444-
"""Calculates the BAO term. This is the rescaling of the fourier volume by the AP-effect
444+
"""Calculates the BAO term. This is the rescaling of the Fourier volume by the AP-effect
445445
446446
Parameters
447447
----------
@@ -822,14 +822,14 @@ def observed_Pgg(self, z, k, mu, b_i=None):
822822
tstart = time()
823823

824824
if self.kh_rescaling_beforespecerr_bug:
825-
# In this case the the h-bug is only applied before computing the resolution supressuion
826-
# This changes the scale of supression aswell.
825+
# In this case the h-bug is only applied before computing the resolution suppression
826+
# This changes the scale off suppression as well.
827827
# Still the additional rescaling is unphysical
828828
k = self.k_units_change(k)
829829
error_z = self.spec_err_z(z, k, mu)
830830
else:
831-
# In this case the the h-bug is only applied after computing the resolution supressuion
832-
# This fixes the scale of supression but still the additional rescaling is unphysical
831+
# In this case the h-bug is only applied after computing the resolution suppression
832+
# This fixes the scale of suppression but still the additional rescaling is unphysical
833833
error_z = self.spec_err_z(z, k, mu)
834834
k = self.k_units_change(k)
835835
k, mu = self.kmu_alc_pac(z, k, mu)

0 commit comments

Comments
 (0)