sacc 0.11__tar.gz → 0.13__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.
Files changed (55) hide show
  1. {sacc-0.11 → sacc-0.13}/.readthedocs.yml +7 -2
  2. {sacc-0.11/sacc.egg-info → sacc-0.13}/PKG-INFO +2 -2
  3. {sacc-0.11 → sacc-0.13}/README.md +1 -1
  4. sacc-0.13/doc/requirements.txt +6 -0
  5. {sacc-0.11 → sacc-0.13}/sacc/__init__.py +1 -1
  6. {sacc-0.11 → sacc-0.13}/sacc/sacc.py +15 -0
  7. {sacc-0.11 → sacc-0.13/sacc.egg-info}/PKG-INFO +2 -2
  8. {sacc-0.11 → sacc-0.13}/sacc.egg-info/SOURCES.txt +1 -0
  9. {sacc-0.11 → sacc-0.13}/test/test_sacc2.py +6 -0
  10. {sacc-0.11 → sacc-0.13}/.git_archival.txt +0 -0
  11. {sacc-0.11 → sacc-0.13}/.gitattributes +0 -0
  12. {sacc-0.11 → sacc-0.13}/.github/workflows/desc-ci.yml +0 -0
  13. {sacc-0.11 → sacc-0.13}/.github/workflows/publish.yml +0 -0
  14. {sacc-0.11 → sacc-0.13}/.gitignore +0 -0
  15. {sacc-0.11 → sacc-0.13}/LICENSE +0 -0
  16. {sacc-0.11 → sacc-0.13}/MANIFEST.in +0 -0
  17. {sacc-0.11 → sacc-0.13}/doc/Makefile +0 -0
  18. {sacc-0.11 → sacc-0.13}/doc/format.md +0 -0
  19. {sacc-0.11 → sacc-0.13}/doc/source/Makefile +0 -0
  20. {sacc-0.11 → sacc-0.13}/doc/source/api.rst +0 -0
  21. {sacc-0.11 → sacc-0.13}/doc/source/conf.py +0 -0
  22. {sacc-0.11 → sacc-0.13}/doc/source/covariance.rst +0 -0
  23. {sacc-0.11 → sacc-0.13}/doc/source/data_types.rst +0 -0
  24. {sacc-0.11 → sacc-0.13}/doc/source/index.rst +0 -0
  25. {sacc-0.11 → sacc-0.13}/doc/source/intro.rst +0 -0
  26. {sacc-0.11 → sacc-0.13}/doc/source/sacc.rst +0 -0
  27. {sacc-0.11 → sacc-0.13}/doc/source/tracers.rst +0 -0
  28. {sacc-0.11 → sacc-0.13}/doc/source/utils.rst +0 -0
  29. {sacc-0.11 → sacc-0.13}/doc/source/windows.rst +0 -0
  30. {sacc-0.11 → sacc-0.13}/examples/.gitignore +0 -0
  31. {sacc-0.11 → sacc-0.13}/examples/CMB_LSS_read.ipynb +0 -0
  32. {sacc-0.11 → sacc-0.13}/examples/CMB_LSS_write.ipynb +0 -0
  33. {sacc-0.11 → sacc-0.13}/examples/Convert_DES_Sacc.ipynb +0 -0
  34. {sacc-0.11 → sacc-0.13}/examples/Convert_KIDS_Sacc.ipynb +0 -0
  35. {sacc-0.11 → sacc-0.13}/examples/Create_Sacc.ipynb +0 -0
  36. {sacc-0.11 → sacc-0.13}/examples/README.md +0 -0
  37. {sacc-0.11 → sacc-0.13}/examples/SACC_for_clusters.ipynb +0 -0
  38. {sacc-0.11 → sacc-0.13}/examples/SACC_read.ipynb +0 -0
  39. {sacc-0.11 → sacc-0.13}/examples/SACC_write.ipynb +0 -0
  40. {sacc-0.11 → sacc-0.13}/examples/demo_sacc_for_clusters_N+M.ipynb +0 -0
  41. {sacc-0.11 → sacc-0.13}/examples/example-txpipe-sacc1.sacc +0 -0
  42. {sacc-0.11 → sacc-0.13}/requirements.txt +0 -0
  43. {sacc-0.11 → sacc-0.13}/sacc/covariance.py +0 -0
  44. {sacc-0.11 → sacc-0.13}/sacc/data_types.py +0 -0
  45. {sacc-0.11 → sacc-0.13}/sacc/tracers.py +0 -0
  46. {sacc-0.11 → sacc-0.13}/sacc/utils.py +0 -0
  47. {sacc-0.11 → sacc-0.13}/sacc/windows.py +0 -0
  48. {sacc-0.11 → sacc-0.13}/sacc.egg-info/dependency_links.txt +0 -0
  49. {sacc-0.11 → sacc-0.13}/sacc.egg-info/requires.txt +0 -0
  50. {sacc-0.11 → sacc-0.13}/sacc.egg-info/top_level.txt +0 -0
  51. {sacc-0.11 → sacc-0.13}/setup.cfg +0 -0
  52. {sacc-0.11 → sacc-0.13}/setup.py +0 -0
  53. {sacc-0.11 → sacc-0.13}/test/data/.gitignore +0 -0
  54. {sacc-0.11 → sacc-0.13}/test/make_test_data.py +0 -0
  55. {sacc-0.11 → sacc-0.13}/test/test_cluster_data_tracers.py +0 -0
@@ -16,6 +16,11 @@ sphinx:
16
16
 
17
17
  # Optionally set the version of Python and requirements required to build your docs
18
18
  python:
19
- version: 3.7
20
19
  install:
21
- - requirements: requirements.txt
20
+ - requirements: doc/requirements.txt
21
+
22
+
23
+ build:
24
+ os: "ubuntu-22.04"
25
+ tools:
26
+ python: "3.9"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sacc
3
- Version: 0.11
3
+ Version: 0.13
4
4
  Summary: SACC - the LSST/DESC summary statistic data format library
5
5
  Home-page: https://github.com/LSSTDESC/sacc
6
6
  Author: LSST DESC
@@ -42,7 +42,7 @@ If you have a problem you've not been able to debug, or a feature request/sugges
42
42
  Versions
43
43
  --------
44
44
 
45
- The current release is [version 0.8](https://github.com/LSSTDESC/sacc/releases/tag/0.8).
45
+ The current release is [version 0.12](https://github.com/LSSTDESC/sacc/releases/tag/0.12).
46
46
 
47
47
  You can find a list of [previous releases here](https://github.com/LSSTDESC/sacc/releases). The releases above 0.2 are all backwards compatible; 0.1 is a previous version of the format.
48
48
 
@@ -30,7 +30,7 @@ If you have a problem you've not been able to debug, or a feature request/sugges
30
30
  Versions
31
31
  --------
32
32
 
33
- The current release is [version 0.8](https://github.com/LSSTDESC/sacc/releases/tag/0.8).
33
+ The current release is [version 0.12](https://github.com/LSSTDESC/sacc/releases/tag/0.12).
34
34
 
35
35
  You can find a list of [previous releases here](https://github.com/LSSTDESC/sacc/releases). The releases above 0.2 are all backwards compatible; 0.1 is a previous version of the format.
36
36
 
@@ -0,0 +1,6 @@
1
+ scipy
2
+ numpy>=1.20
3
+ numpydoc
4
+ astropy
5
+ qp-prob
6
+ sphinx==6.*
@@ -3,4 +3,4 @@ from .windows import Window, BandpowerWindow, TopHatWindow, LogTopHatWindow # n
3
3
  from .data_types import standard_types, parse_data_type_name, build_data_type_name # noqa
4
4
  from .tracers import BaseTracer # noqa
5
5
  from .covariance import BaseCovariance # noqa
6
- __version__ = '0.9' #noqa
6
+ __version__ = '0.13' #noqa
@@ -623,6 +623,21 @@ class Sacc:
623
623
 
624
624
  return data_types
625
625
 
626
+ def has_tracer(self, name):
627
+ """
628
+ Determine whether a tracer object with the given name is present
629
+
630
+ Parameters
631
+ ----------
632
+ name: str
633
+ A string name of a tracer
634
+
635
+ Returns
636
+ -------
637
+ value: True if the tracer exists, else False
638
+ """
639
+ return name in self.tracers
640
+
626
641
  def get_tracer(self, name):
627
642
  """
628
643
  Get the tracer object with the given name
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sacc
3
- Version: 0.11
3
+ Version: 0.13
4
4
  Summary: SACC - the LSST/DESC summary statistic data format library
5
5
  Home-page: https://github.com/LSSTDESC/sacc
6
6
  Author: LSST DESC
@@ -42,7 +42,7 @@ If you have a problem you've not been able to debug, or a feature request/sugges
42
42
  Versions
43
43
  --------
44
44
 
45
- The current release is [version 0.8](https://github.com/LSSTDESC/sacc/releases/tag/0.8).
45
+ The current release is [version 0.12](https://github.com/LSSTDESC/sacc/releases/tag/0.12).
46
46
 
47
47
  You can find a list of [previous releases here](https://github.com/LSSTDESC/sacc/releases). The releases above 0.2 are all backwards compatible; 0.1 is a previous version of the format.
48
48
 
@@ -11,6 +11,7 @@ setup.py
11
11
  .github/workflows/publish.yml
12
12
  doc/Makefile
13
13
  doc/format.md
14
+ doc/requirements.txt
14
15
  doc/source/Makefile
15
16
  doc/source/api.rst
16
17
  doc/source/conf.py
@@ -876,3 +876,9 @@ def test_io_qp():
876
876
  mu = s2.get_mean(sacc.standard_types.galaxy_shear_cl_ee)
877
877
  for i in range(20):
878
878
  assert mu[i] == 0.1 * i
879
+
880
+ def test_sacc_has_tracer():
881
+ s = get_filled_sacc()
882
+ assert not s.has_tracer("this_is_not_a_tracer")
883
+ for tracer_name in ['source_0', 'source_1', 'source_2']:
884
+ assert s.has_tracer(tracer_name)
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