Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

_ccl_to_camb drops the neutrino mass

オープン 初心者向け
#96 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

@cailmdaley がすでに取り組んでいます。

2026年10月4日 から。

  • #97 @cailmdaley による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
backend

調査の方向性

cs_util/cosmo.py:359 の _ccl_to_camb から始め、σ₈-to-A_s 変換の前に camb_params がどのように組み立てられているかを確認します。CAMB バックエンドがデフォルト以外の m_nu 値に応答することを示すテストを追加し、既存の変換が更新されたパラメータセットを引き続き使用していることを検証します。

索引モデルが issue の本文から書いたものです。

説明

cosmo._ccl_to_camb (develop e14cd68, cs_util/cosmo.py:359) builds the CAMB parameters from H0, ω_b, ω_c, n_s, A_s (or σ₈ converted to A_s), w and wa, but never passes m_nu. So a CCL cosmology with, say, m_nu=0.3 gets CAMB's default 0.06 eV on the CAMB backend of get_theo_c_ell. The σ₈→A_s conversion runs on that same neutrino-free parameter set.

Measured with sp_validation's iNKA fiducial (Gaussian n(z) at z=0.7), CAMB/CCL − 1 at ℓ = 1000:

  • −4.3% with Planck defaults, where the gap is mostly CAMB's mead2020 vs CCL's halofit, which is a model choice;
  • −8.5% with m_nu = 0.3, where the extra gap is the dropped neutrino mass.

Fix: pass mnu=cosmo["m_nu"] (summed, if CCL holds it per species) into camb_params before the σ₈ conversion, and add a test that the CAMB backend responds to m_nu.

Found while merging develop into sp_validation's tomography branch (CosmoStat/sp_validation#374), where the iNKA covariance fiducial uses the CAMB backend.

— Claude Opus 5.5 on behalf of Cail

主要言語
Python
スター
0
フォーク
2
平均マージ
4時間 15分
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CosmoStat/cs_util のほかの issue

CosmoStat/cs_util の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。