Skip to content

Commit 3fdd101

Browse files
Removed old tests
1 parent 302c28b commit 3fdd101

File tree

1 file changed

+0
-50
lines changed

1 file changed

+0
-50
lines changed

tests/test_modeling_tools.py

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -303,53 +303,3 @@ def test_prepare_with_pt_calculator_updates_ingredients() -> None:
303303

304304
# After prepare, verify the cosmology was set and PT calculator was updated
305305
assert tools.ccl_cosmo is not None
306-
307-
308-
def test_prepare_with_cluster_abundance_updates_ingredients() -> None:
309-
"""Test prepare() calls update_ingredients on cluster_abundance when set."""
310-
# Create a real ClusterAbundance object
311-
hmf = pyccl.halos.MassFuncTinker08(mass_def="200c")
312-
min_mass, max_mass = 13.0, 16.0
313-
min_z, max_z = 0.2, 0.8
314-
cluster_abundance = ClusterAbundance((min_mass, max_mass), (min_z, max_z), hmf)
315-
316-
tools = ModelingTools(cluster_abundance=cluster_abundance)
317-
params = get_default_params_map(tools)
318-
tools.update(params)
319-
320-
# Before prepare, cluster_abundance should not have cosmology set
321-
assert cluster_abundance.cosmo is None
322-
323-
# Call prepare - this should call update_ingredients on cluster_abundance
324-
tools.prepare()
325-
326-
# After prepare, verify the cosmology was set on cluster_abundance
327-
assert tools.ccl_cosmo is not None
328-
assert cluster_abundance.cosmo is not None
329-
assert cluster_abundance.cosmo is tools.ccl_cosmo
330-
331-
332-
def test_prepare_with_cluster_deltasigma_updates_ingredients() -> None:
333-
"""Test prepare() calls update_ingredients on cluster_deltasigma when set."""
334-
# Create a real ClusterDeltaSigma object
335-
hmf = pyccl.halos.MassFuncTinker08(mass_def="200c")
336-
min_mass, max_mass = 13.0, 16.0
337-
min_z, max_z = 0.2, 0.8
338-
cluster_deltasigma = ClusterDeltaSigma(
339-
(min_mass, max_mass), (min_z, max_z), hmf, conc_parameter=True
340-
)
341-
342-
tools = ModelingTools(cluster_deltasigma=cluster_deltasigma)
343-
params = get_default_params_map(tools)
344-
tools.update(params)
345-
346-
# Before prepare, cluster_deltasigma should not have cosmology set
347-
assert cluster_deltasigma.cosmo is None
348-
349-
# Call prepare - this should call update_ingredients on cluster_deltasigma
350-
tools.prepare()
351-
352-
# After prepare, verify the cosmology was set on cluster_deltasigma
353-
assert tools.ccl_cosmo is not None
354-
assert cluster_deltasigma.cosmo is not None
355-
assert cluster_deltasigma.cosmo is tools.ccl_cosmo

0 commit comments

Comments
 (0)