Skip to content

Commit 9246ff2

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

7 files changed

+17
-6
lines changed

src/pspec_likelihood/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""The PSpec Likelihood Package."""
2+
23
from . import likelihood
34
from .arbitrary_linear_systematics import LikelihoodLinearSystematic
45
from .likelihood import (

src/pspec_likelihood/arbitrary_linear_systematics.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Module responsible for computing the likelihood for linear systematics."""
2+
23
from __future__ import annotations
34

45
import warnings

src/pspec_likelihood/likelihood.py

+11-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Primary module defining likelihoods based on HERA power spectra."""
2+
23
from __future__ import annotations
34

45
import warnings
@@ -733,12 +734,16 @@ def loglike(self, theory_params, sys_params) -> float:
733734
# them. "basis" corresponds to "A" in the memo.
734735
basis = self.linear_systematics_basis_function(
735736
sys_params,
736-
self.model.kperp_bins_theory
737-
if self.model.apply_window_to_systematics
738-
else self.model.kperp_bins_obs,
739-
self.model.kpar_bins_theory
740-
if self.model.apply_window_to_systematics
741-
else self.model.kpar_bins_obs,
737+
(
738+
self.model.kperp_bins_theory
739+
if self.model.apply_window_to_systematics
740+
else self.model.kperp_bins_obs
741+
),
742+
(
743+
self.model.kpar_bins_theory
744+
if self.model.apply_window_to_systematics
745+
else self.model.kpar_bins_obs
746+
),
742747
)
743748

744749
mu_linear = self.get_mu_linear(basis)

src/pspec_likelihood/types.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Types to be used throughout the package."""
2+
23
from __future__ import annotations
34

45
from typing import Any, Callable

src/pspec_likelihood/utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Miscellaneous utility functions."""
2+
23
from __future__ import annotations
34

45
import warnings

tests/test_likelihoods.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test loading an UVPspec file"""
2+
23
from __future__ import annotations
34

45
import astropy.units as un

tests/test_uvpread.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test loading an UVPspec file"""
2+
23
from pathlib import Path
34

45
import astropy.units as un

0 commit comments

Comments
 (0)