Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Mass concentration bhattacharya13#234

Merged
vitenti merged 42 commits into
masterfrom
mass_concentration_bhattacharya13
Dec 22, 2025
Merged

Mass concentration bhattacharya13#234
vitenti merged 42 commits into
masterfrom
mass_concentration_bhattacharya13

Conversation

@pennalima

Copy link
Copy Markdown
Contributor

New concentration-mass relations: Prada12, Battacharya13, Diemer15 and Dutton14.
Transferfunction: Eisentein-Hu - No baryon limit.

thaisornellas and others added 27 commits December 5, 2024 16:23
…ocumentation...) and typo in some equations. Diemer15 is not complete yet.

Transfer functions:
- Created No-baryon EH transfer function, to be used in the Diemer15 mass-concentration relation.
- Updated (GObject's sintax) all transfer function objects.

Watson multiplicity function: fixed the properties list (included PROP_LEN).
@codecov

codecov Bot commented Nov 18, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.15254% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.28%. Comparing base (1b8a921) to head (aee3b88).
⚠️ Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
numcosmo/lss/nc_halo_cm_bhattacharya13.c 99.22% 1 Missing ⚠️
numcosmo/lss/nc_halo_cm_diemer15.c 99.06% 1 Missing ⚠️
numcosmo/lss/nc_halo_cm_dutton14.c 98.66% 1 Missing ⚠️
numcosmo/lss/nc_halo_cm_prada12.c 99.01% 1 Missing ⚠️
numcosmo/lss/nc_transfer_func_bbks.c 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #234      +/-   ##
==========================================
+ Coverage   76.21%   76.28%   +0.06%     
==========================================
  Files         604      616      +12     
  Lines      102030   102603     +573     
==========================================
+ Hits        77767    78272     +505     
- Misses      24263    24331      +68     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

pennalima and others added 2 commits November 24, 2025 10:13
Mass function as properties: Diemer15.

Unit test for the concentration-mass relations (in progress).
@vitenti vitenti marked this pull request as ready for review December 21, 2025 22:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces new concentration-mass relations (Prada12, Bhattacharya13, Diemer15, Dutton14) and adds support for the Eisenstein-Hu transfer function with no baryon limit. The changes include new implementations, comprehensive test coverage, and necessary type stub updates for Python bindings.

  • New concentration-mass relation implementations with validation against Colossus reference data
  • New transfer function implementation (EH no baryon) with test coverage
  • Refactored test infrastructure with improved fixtures and parametrization
  • Code cleanup including modernization of GObject macro usage and spelling fixes

Reviewed changes

Copilot reviewed 39 out of 39 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/test_py_transfer_func_*.py New comprehensive test suites for transfer functions (EH, EH no baryon, BBKS)
tests/test_py_halo_mass_summary.py Refactored with new fixtures for testing concentration-mass relations
tests/test_py_concentration_mass_relations.py Added Bhattacharya13 tests and comprehensive validation suite
tests/test_ncm_generic.c Added basic C tests for new concentration-mass relation classes
numcosmo/lss/nc_halo_cm_*.c/h New implementations for Prada12, Bhattacharya13, Dutton14, Diemer15
numcosmo/lss/nc_transfer_func_eh_no_baryon.c/h New EH no baryon transfer function implementation
numcosmo/lss/nc_transfer_func*.c/h Refactored to use G_DECLARE macros and private structures
numcosmo/math/ncm_powspec.c/h Added deriv_k method for power spectrum derivatives with respect to k
numcosmo_py/*.pyi Updated type stubs for new classes and methods

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

}

static void
_nc_halo_cm_battacharya13_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec)

Copilot AI Dec 22, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spelling error in the function name: "_nc_halo_cm_battacharya13_set_property" should be "_nc_halo_cm_bhattacharya13_set_property" (missing 'h' after 'b').

Suggested change
_nc_halo_cm_battacharya13_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec)
_nc_halo_cm_bhattacharya13_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec)

Copilot uses AI. Check for mistakes.
"""Unit tests for NcTransferFuncBBKS."""

import numpy as np
from numpy.testing import assert_allclose

Copilot AI Dec 22, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Import of 'assert_allclose' is not used.

Copilot uses AI. Check for mistakes.
@vitenti vitenti merged commit 50368fc into master Dec 22, 2025
21 of 22 checks passed
@vitenti vitenti deleted the mass_concentration_bhattacharya13 branch December 22, 2025 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants