sacc 2.0.1__tar.gz → 2.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sacc-2.0.1/sacc.egg-info → sacc-2.0.2}/PKG-INFO +1 -1
- {sacc-2.0.1 → sacc-2.0.2}/examples/demo_sacc_for_clusters_N+M.ipynb +12 -13
- {sacc-2.0.1 → sacc-2.0.2}/sacc/__init__.py +1 -1
- {sacc-2.0.1 → sacc-2.0.2}/sacc/data_types.py +2 -1
- {sacc-2.0.1 → sacc-2.0.2/sacc.egg-info}/PKG-INFO +1 -1
- {sacc-2.0.1 → sacc-2.0.2}/.git_archival.txt +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/.gitattributes +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/.github/workflows/desc-ci.yml +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/.github/workflows/publish.yml +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/.gitignore +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/.readthedocs.yml +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/LICENSE +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/MANIFEST.in +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/README.md +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/codecov.yml +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/doc/Makefile +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/doc/format.md +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/doc/requirements.txt +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/doc/source/Makefile +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/doc/source/api.rst +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/doc/source/conf.py +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/doc/source/covariance.rst +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/doc/source/data_types.rst +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/doc/source/index.rst +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/doc/source/intro.rst +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/doc/source/sacc.rst +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/doc/source/tracers.rst +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/doc/source/utils.rst +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/doc/source/windows.rst +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/examples/.gitignore +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/examples/CMB_LSS_read.ipynb +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/examples/CMB_LSS_write.ipynb +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/examples/Convert_DES_Sacc.ipynb +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/examples/Convert_KIDS_Sacc.ipynb +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/examples/Create_Sacc.ipynb +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/examples/README.md +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/examples/SACC_for_clusters.ipynb +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/examples/SACC_read.ipynb +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/examples/SACC_write.ipynb +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/examples/demo.py +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/examples/example-txpipe-sacc1.sacc +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/pyproject.toml +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/requirements.txt +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/sacc/covariance.py +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/sacc/io.py +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/sacc/sacc.py +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/sacc/tracer_uncertainty/__init__.py +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/sacc/tracer_uncertainty/base.py +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/sacc/tracer_uncertainty/nz.py +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/sacc/tracers/__init__.py +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/sacc/tracers/base.py +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/sacc/tracers/clusters.py +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/sacc/tracers/maps.py +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/sacc/tracers/misc.py +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/sacc/tracers/nz.py +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/sacc/tracers/survey.py +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/sacc/utils.py +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/sacc/windows.py +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/sacc.egg-info/SOURCES.txt +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/sacc.egg-info/dependency_links.txt +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/sacc.egg-info/requires.txt +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/sacc.egg-info/top_level.txt +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/setup.cfg +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/test/__init__.py +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/test/data/.gitignore +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/test/legacy_files/old_qp_sacc.fits +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/test/make_test_data.py +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/test/test_cluster_data_tracers.py +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/test/test_covariance.py +0 -0
- {sacc-2.0.1 → sacc-2.0.2}/test/test_sacc.py +0 -0
@@ -17,7 +17,7 @@
|
|
17
17
|
"- generate a mock cluster catalog in richness-redshift bins. This is done using NumCosmo functionalities and requires Numcosmo v>=0.17\n",
|
18
18
|
"- store all this information using the SACC framework. We present to cases:\n",
|
19
19
|
" - store **number counts and mean mass** in a single SACC file;\n",
|
20
|
-
" - store **number counts and radial shear profile** in a single SACC file\n",
|
20
|
+
" - store **number counts and radial shear profile ($\\Delta \\Sigma$)** in a single SACC file\n",
|
21
21
|
"\n",
|
22
22
|
"For the latter, in each richness-redshift bin, we generate a mock radial shear profile using CLMM. This is meant to correspond to the stacked shear profile in that bin.\n",
|
23
23
|
"\n",
|
@@ -43,7 +43,6 @@
|
|
43
43
|
"# This require Numcosmo v>=0.17\n",
|
44
44
|
"from numcosmo_py import Nc\n",
|
45
45
|
"from numcosmo_py import Ncm\n",
|
46
|
-
"\n",
|
47
46
|
"import sacc as sacc\n",
|
48
47
|
"\n",
|
49
48
|
"os.environ[\n",
|
@@ -199,7 +198,7 @@
|
|
199
198
|
"source": [
|
200
199
|
"## SACC for number counts and mean mass in the $N_{\\rm richness} \\times N_z$ richness-redshift plane\n",
|
201
200
|
"- count halos and compute mean mass in each bin, directly from the data generated at the previous step\n",
|
202
|
-
"- associate a \"mock\" shear profile
|
201
|
+
"- associate a \"mock\" shear profile $\\Delta \\Sigma$, generated using CLMM from the mean mass in the bin, mock diagonal inter-radial bin covariance. Very rough/quick solution to get some \"shear profile data\".\n"
|
203
202
|
]
|
204
203
|
},
|
205
204
|
{
|
@@ -382,7 +381,7 @@
|
|
382
381
|
"tags": []
|
383
382
|
},
|
384
383
|
"source": [
|
385
|
-
"## SACC for number counts and shear profile in the $N_{\\rm richness} \\times N_z$ richness-redshift plane\n",
|
384
|
+
"## SACC for number counts and shear profile $\\Delta \\Sigma$ in the $N_{\\rm richness} \\times N_z$ richness-redshift plane\n",
|
386
385
|
"\n",
|
387
386
|
"\n",
|
388
387
|
"Rather than saving the mean mass into SACC, one may want to save the 'stacked' shear profile in a richness-redshift bin. This possible as exemplified below. "
|
@@ -500,7 +499,7 @@
|
|
500
499
|
" )\n",
|
501
500
|
" bin_radius_labels.append(bin_radius_label)\n",
|
502
501
|
"\n",
|
503
|
-
"
|
502
|
+
"cluster_delta_sigma = sacc.standard_types.cluster_delta_sigma"
|
504
503
|
]
|
505
504
|
},
|
506
505
|
{
|
@@ -529,7 +528,7 @@
|
|
529
528
|
" profile = moo.eval_excess_surface_density(radius_centers, redshift)\n",
|
530
529
|
" for i, bin_radius_label in enumerate(bin_radius_labels):\n",
|
531
530
|
" s_count2.add_data_point(\n",
|
532
|
-
"
|
531
|
+
" cluster_delta_sigma,\n",
|
533
532
|
" (survey_name, bin_z_label, bin_richness_label, bin_radius_label),\n",
|
534
533
|
" profile[i],\n",
|
535
534
|
" )"
|
@@ -542,7 +541,7 @@
|
|
542
541
|
"source": [
|
543
542
|
"This is what the data now looks like:\n",
|
544
543
|
"- 4 richness x 3 redshift bins \"number counts\" datapoints\n",
|
545
|
-
"- 4 richness x 3 redshift x 6 radius bins \"shear profile\" datapoints"
|
544
|
+
"- 4 richness x 3 redshift x 6 radius bins \"shear profile\" $\\Delta \\Sigma$ datapoints"
|
546
545
|
]
|
547
546
|
},
|
548
547
|
{
|
@@ -560,7 +559,7 @@
|
|
560
559
|
"id": "b641b9c2-b261-4b80-a9ad-a4b22f5255ac",
|
561
560
|
"metadata": {},
|
562
561
|
"source": [
|
563
|
-
"### Santity check - plotting the shear profile for two richness bins, to check that the high richness bin as higher shear (i.e. ordering of data is OK)"
|
562
|
+
"### Santity check - plotting the shear profile $\\Delta \\Sigma$ for two richness bins, to check that the high richness bin as higher shear (i.e. ordering of data is OK)"
|
564
563
|
]
|
565
564
|
},
|
566
565
|
{
|
@@ -572,7 +571,7 @@
|
|
572
571
|
"source": [
|
573
572
|
"DS0 = [\n",
|
574
573
|
" s_count2.get_data_points(\n",
|
575
|
-
" data_type=\"
|
574
|
+
" data_type=\"cluster_delta_sigma\",\n",
|
576
575
|
" tracers=(\n",
|
577
576
|
" \"NC_mock_redshift_richness\",\n",
|
578
577
|
" \"bin_z_1\",\n",
|
@@ -584,7 +583,7 @@
|
|
584
583
|
"]\n",
|
585
584
|
"DS2 = [\n",
|
586
585
|
" s_count2.get_data_points(\n",
|
587
|
-
" data_type=\"
|
586
|
+
" data_type=\"cluster_delta_sigma\",\n",
|
588
587
|
" tracers=(\n",
|
589
588
|
" \"NC_mock_redshift_richness\",\n",
|
590
589
|
" \"bin_z_1\",\n",
|
@@ -617,9 +616,9 @@
|
|
617
616
|
],
|
618
617
|
"metadata": {
|
619
618
|
"kernelspec": {
|
620
|
-
"display_name": "Python
|
619
|
+
"display_name": "Python (firecrown20.0)",
|
621
620
|
"language": "python",
|
622
|
-
"name": "
|
621
|
+
"name": "firecrown_20"
|
623
622
|
},
|
624
623
|
"language_info": {
|
625
624
|
"codemirror_mode": {
|
@@ -631,7 +630,7 @@
|
|
631
630
|
"name": "python",
|
632
631
|
"nbconvert_exporter": "python",
|
633
632
|
"pygments_lexer": "ipython3",
|
634
|
-
"version": "3.
|
633
|
+
"version": "3.13.0"
|
635
634
|
}
|
636
635
|
},
|
637
636
|
"nbformat": 4,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|