Skip to content

Commit c78e410

Browse files
committed
Run new black (v26).
1 parent bf82d64 commit c78e410

26 files changed

+39
-98
lines changed

examples/cluster_number_counts/generate_rich_mean_mass_sacc_data_withshear.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env python
22

33
"""Function to generate a SACC file for cluster number counts and cluster DeltaSigma."""
4+
45
import os
56
from typing import Tuple
67

examples/des_y1_3x2pt/factory_PT.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env python
22

33
"""Example factory function for DES Y1 3x2pt likelihood."""
4+
45
from dataclasses import dataclass
56
import os
67

@@ -19,7 +20,6 @@
1920
from firecrown.modeling_tools import CCLFactory
2021
from firecrown.updatable import get_default_params_map
2122

22-
2323
saccfile = os.path.expanduser(
2424
os.path.expandvars("${FIRECROWN_DIR}/examples/des_y1_3x2pt/sacc_data.hdf5")
2525
)

firecrown/app/examples/_des_y1_3x2pt.py

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -183,31 +183,22 @@ def _get_yaml_config(self, sacc: Path) -> str:
183183
"""
184184

185185
if self.factory_type == DESY1FactoryType.YAML_PURE_CCL:
186-
return (
187-
base_config
188-
+ """
186+
return base_config + """
189187
ccl_factory:
190188
creation_mode: 'pure_ccl_mode'
191189
require_nonlinear_pk: true
192190
"""
193-
)
194191
if self.factory_type == DESY1FactoryType.YAML_MU_SIGMA:
195-
return (
196-
base_config
197-
+ """
192+
return base_config + """
198193
ccl_factory:
199194
creation_mode: 'mu_sigma_isitgr'
200195
require_nonlinear_pk: true
201196
"""
202-
)
203197

204-
return (
205-
base_config
206-
+ """
198+
return base_config + """
207199
ccl_factory:
208200
require_nonlinear_pk: true
209201
"""
210-
)
211202

212203
def get_build_parameters(self, sacc_path: Path) -> NamedParameters:
213204
"""Return build parameters for likelihood construction.

firecrown/app/sacc/_utils.py

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

99
from firecrown import metadata_types as mdt
1010

11-
1211
QuadOpts = TypedDict(
1312
"QuadOpts",
1413
{

firecrown/fctools/code_block_checker.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import typer
88
from rich.console import Console
99

10-
1110
app = typer.Typer()
1211

1312

firecrown/fctools/symbol_reference_checker.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
print_success,
2222
)
2323

24-
2524
app = typer.Typer()
2625

2726

firecrown/likelihood/_base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
register_new_updatable_parameter,
4545
)
4646

47-
4847
# ============================================================================
4948
# Classes from _likelihood.py
5049
# ============================================================================

firecrown/likelihood/number_counts/_source.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
UpdatableCollection,
2626
)
2727

28-
2928
NUMBER_COUNTS_DEFAULT_BIAS = 1.5
3029

3130

firecrown/updatable/_collection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from firecrown.updatable._records import UpdatableUsageRecord
1313
from firecrown.updatable._types import UpdatableProtocol
1414

15-
1615
T = TypeVar("T", bound=Updatable)
1716

1817

tests/app/analysis/test_analysis_builder.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ def test_initialization_with_custom_cosmology(self, tmp_path: Path) -> None:
9090
"""Test initialization with custom cosmology specification."""
9191
# Create a cosmology spec file
9292
cosmo_file = tmp_path / "cosmology.yaml"
93-
cosmo_file.write_text(
94-
r"""
93+
cosmo_file.write_text(r"""
9594
name: test_cosmology
9695
description: Test cosmology
9796
parameters:
@@ -155,8 +154,7 @@ def test_initialization_with_custom_cosmology(self, tmp_path: Path) -> None:
155154
upper_bound: 1.0
156155
default_value: 0.0
157156
free: false
158-
"""
159-
)
157+
""")
160158

161159
with patch.object(ConcreteAnalysisBuilder, "_proceed_generation"):
162160
builder = ConcreteAnalysisBuilder(

0 commit comments

Comments
 (0)