Skip to content

Commit 5e54aa2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b32334a commit 5e54aa2

File tree

6 files changed

+0
-9
lines changed

6 files changed

+0
-9
lines changed

src/py21cmmc/core.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ def __eq__(self, other):
9999
args = tuple(set(args))
100100

101101
for arg in args + self._extra_defining_attributes:
102-
103102
if arg == "self" or arg in self._ignore_attributes:
104103
continue
105104

@@ -669,7 +668,6 @@ def convert_model_to_mock(self, ctx):
669668
try:
670669
lfunc[i] += np.random.normal(loc=0, scale=s(muv), size=len(lfunc[i]))
671670
except TypeError:
672-
673671
lfunc[i] += np.random.normal(loc=0, scale=s, size=len(lfunc[i]))
674672

675673

@@ -941,7 +939,6 @@ def __init__(
941939
global_params=None,
942940
**io_options,
943941
):
944-
945942
super().__init__(io_options.get("store", None))
946943

947944
if not use_21cmfast:

src/py21cmmc/cosmoHammer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,6 @@ def get_last_sample(self):
454454
return tuple(last)
455455

456456
def _check(self, coords, log_prob, blobs, accepted):
457-
458457
self._check_blobs(blobs[0])
459458
nwalkers, ndim = self.shape
460459

src/py21cmmc/likelihood.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,6 @@ def reduce_data(self, ctx):
10181018
# Extract relevant info from the context.
10191019

10201020
if self._is_lightcone:
1021-
10221021
lc = ctx.get("lightcone")
10231022

10241023
redshifts = lc.node_redshifts
@@ -1248,7 +1247,6 @@ def computeLikelihood(self, model):
12481247
nf_qso = redshifts.index(self.qso_redshift)
12491248

12501249
elif len(redshifts) > 2:
1251-
12521250
# Check the redshift range input by the user to determine whether to
12531251
# interpolate or extrapolate the IGM neutral fraction to the QSO redshift
12541252
if self.qso_redshift < np.min(redshifts):

tests/test_mcmc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,6 @@ def test_planckpowerspectra(lc_core, default_params, tmpdirec):
549549

550550

551551
def test_forest(lc_core_lowz, lc_core_lowz_ctx):
552-
553552
lk = mcmc.LikelihoodForest(name="z5pt4")
554553

555554
with pytest.raises(mcmc.NotAChain):

tests/test_multinest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ def test_multinest_samples(astro_params, prior):
9393

9494

9595
def test_multinest():
96-
9796
model_name = "LuminosityLikelihood"
9897
redshifts = [6, 7, 8, 10]
9998
F_STAR10 = [-1.3, -3, 0, 1.0]

tests/test_zeus.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
def test_zeus():
9-
109
core = p21mc.CoreCoevalModule(
1110
redshift=[7, 8, 9],
1211
user_params=dict(HII_DIM=50, BOX_LEN=125.0),

0 commit comments

Comments
 (0)