Skip to content

Commit

Permalink
Apply black
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpitkin committed Jul 4, 2024
1 parent cd9698b commit 856f173
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion libstempo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
try:
from ._version import version as __version__
except ModuleNotFoundError:
__version__ = ""
__version__ = ""
7 changes: 0 additions & 7 deletions libstempo/toasim.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def add_dipole_gwb(
dipoledir=None,
dipolemag=None,
):

"""Add a stochastic background from inspiraling binaries distributed
according to a pure dipole distribution, using the tempo2
code that underlies the GWdipolebkgrd plugin.
Expand Down Expand Up @@ -502,7 +501,6 @@ def add_cgw(

# evolution
if evolve:

# calculate time dependent frequency at earth and pulsar
omega = w0 * (1 - fac1 * toas) ** (-3 / 8)
omega_p = w0 * (1 - fac1 * tp) ** (-3 / 8)
Expand All @@ -513,7 +511,6 @@ def add_cgw(

# use approximation that frequency does not evlolve over observation time
elif phase_approx:

# frequencies
omega = w0
omega_p = w0 * (1 + fac1 * pd * (1 - cosMu)) ** (-3 / 8)
Expand All @@ -524,7 +521,6 @@ def add_cgw(

# no evolution
else:

# monochromatic
omega = w0
omega_p = omega
Expand Down Expand Up @@ -681,7 +677,6 @@ def add_ecc_cgw(

# pulsar term #####
if psrTerm:

# convert units
pd *= eu.KPC2S # convert from kpc to seconds

Expand Down Expand Up @@ -855,7 +850,6 @@ def createGWB(

# strain amplitude
if userSpec is None:

f1yr = 1 / 3.16e7
alpha = -0.5 * (gam - 3)
hcf = Amp * (f / f1yr) ** (alpha)
Expand All @@ -864,7 +858,6 @@ def createGWB(
hcf /= (1 + (f / f0) ** (power * si)) ** (1 / power)

elif userSpec is not None:

freqs = userSpec[:, 0]
if len(userSpec[:, 0]) != len(freqs):
raise ValueError("Number of supplied spectral points does not match number of frequencies!")
Expand Down

0 comments on commit 856f173

Please sign in to comment.