sacc 1.0__tar.gz → 1.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.
Files changed (56) hide show
  1. {sacc-1.0/sacc.egg-info → sacc-1.0.2}/PKG-INFO +1 -1
  2. {sacc-1.0 → sacc-1.0.2}/sacc/__init__.py +1 -1
  3. {sacc-1.0 → sacc-1.0.2}/sacc/sacc.py +15 -0
  4. {sacc-1.0 → sacc-1.0.2/sacc.egg-info}/PKG-INFO +1 -1
  5. {sacc-1.0 → sacc-1.0.2}/.git_archival.txt +0 -0
  6. {sacc-1.0 → sacc-1.0.2}/.gitattributes +0 -0
  7. {sacc-1.0 → sacc-1.0.2}/.github/workflows/desc-ci.yml +0 -0
  8. {sacc-1.0 → sacc-1.0.2}/.github/workflows/publish.yml +0 -0
  9. {sacc-1.0 → sacc-1.0.2}/.gitignore +0 -0
  10. {sacc-1.0 → sacc-1.0.2}/.readthedocs.yml +0 -0
  11. {sacc-1.0 → sacc-1.0.2}/LICENSE +0 -0
  12. {sacc-1.0 → sacc-1.0.2}/MANIFEST.in +0 -0
  13. {sacc-1.0 → sacc-1.0.2}/README.md +0 -0
  14. {sacc-1.0 → sacc-1.0.2}/doc/Makefile +0 -0
  15. {sacc-1.0 → sacc-1.0.2}/doc/format.md +0 -0
  16. {sacc-1.0 → sacc-1.0.2}/doc/requirements.txt +0 -0
  17. {sacc-1.0 → sacc-1.0.2}/doc/source/Makefile +0 -0
  18. {sacc-1.0 → sacc-1.0.2}/doc/source/api.rst +0 -0
  19. {sacc-1.0 → sacc-1.0.2}/doc/source/conf.py +0 -0
  20. {sacc-1.0 → sacc-1.0.2}/doc/source/covariance.rst +0 -0
  21. {sacc-1.0 → sacc-1.0.2}/doc/source/data_types.rst +0 -0
  22. {sacc-1.0 → sacc-1.0.2}/doc/source/index.rst +0 -0
  23. {sacc-1.0 → sacc-1.0.2}/doc/source/intro.rst +0 -0
  24. {sacc-1.0 → sacc-1.0.2}/doc/source/sacc.rst +0 -0
  25. {sacc-1.0 → sacc-1.0.2}/doc/source/tracers.rst +0 -0
  26. {sacc-1.0 → sacc-1.0.2}/doc/source/utils.rst +0 -0
  27. {sacc-1.0 → sacc-1.0.2}/doc/source/windows.rst +0 -0
  28. {sacc-1.0 → sacc-1.0.2}/examples/.gitignore +0 -0
  29. {sacc-1.0 → sacc-1.0.2}/examples/CMB_LSS_read.ipynb +0 -0
  30. {sacc-1.0 → sacc-1.0.2}/examples/CMB_LSS_write.ipynb +0 -0
  31. {sacc-1.0 → sacc-1.0.2}/examples/Convert_DES_Sacc.ipynb +0 -0
  32. {sacc-1.0 → sacc-1.0.2}/examples/Convert_KIDS_Sacc.ipynb +0 -0
  33. {sacc-1.0 → sacc-1.0.2}/examples/Create_Sacc.ipynb +0 -0
  34. {sacc-1.0 → sacc-1.0.2}/examples/README.md +0 -0
  35. {sacc-1.0 → sacc-1.0.2}/examples/SACC_for_clusters.ipynb +0 -0
  36. {sacc-1.0 → sacc-1.0.2}/examples/SACC_read.ipynb +0 -0
  37. {sacc-1.0 → sacc-1.0.2}/examples/SACC_write.ipynb +0 -0
  38. {sacc-1.0 → sacc-1.0.2}/examples/demo_sacc_for_clusters_N+M.ipynb +0 -0
  39. {sacc-1.0 → sacc-1.0.2}/examples/example-txpipe-sacc1.sacc +0 -0
  40. {sacc-1.0 → sacc-1.0.2}/pyproject.toml +0 -0
  41. {sacc-1.0 → sacc-1.0.2}/requirements.txt +0 -0
  42. {sacc-1.0 → sacc-1.0.2}/sacc/covariance.py +0 -0
  43. {sacc-1.0 → sacc-1.0.2}/sacc/data_types.py +0 -0
  44. {sacc-1.0 → sacc-1.0.2}/sacc/tracers.py +0 -0
  45. {sacc-1.0 → sacc-1.0.2}/sacc/utils.py +0 -0
  46. {sacc-1.0 → sacc-1.0.2}/sacc/windows.py +0 -0
  47. {sacc-1.0 → sacc-1.0.2}/sacc.egg-info/SOURCES.txt +0 -0
  48. {sacc-1.0 → sacc-1.0.2}/sacc.egg-info/dependency_links.txt +0 -0
  49. {sacc-1.0 → sacc-1.0.2}/sacc.egg-info/requires.txt +0 -0
  50. {sacc-1.0 → sacc-1.0.2}/sacc.egg-info/top_level.txt +0 -0
  51. {sacc-1.0 → sacc-1.0.2}/setup.cfg +0 -0
  52. {sacc-1.0 → sacc-1.0.2}/test/__init__.py +0 -0
  53. {sacc-1.0 → sacc-1.0.2}/test/data/.gitignore +0 -0
  54. {sacc-1.0 → sacc-1.0.2}/test/make_test_data.py +0 -0
  55. {sacc-1.0 → sacc-1.0.2}/test/test_cluster_data_tracers.py +0 -0
  56. {sacc-1.0 → sacc-1.0.2}/test/test_sacc.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sacc
3
- Version: 1.0
3
+ Version: 1.0.2
4
4
  Summary: SACC - the LSST/DESC summary statistic data format library
5
5
  Author-email: LSST DESC <joezuntz@googlemail.com>
6
6
  License: BSD-3-Clause
@@ -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__ = '1.0' #noqa
6
+ __version__ = '1.0.2' #noqa
@@ -930,6 +930,21 @@ class Sacc:
930
930
  # Window objects.
931
931
  lookup = {'window': windows}
932
932
 
933
+ # Check if all tables have the 'sacc_ordering' column
934
+ if not all("sacc_ordering" in table.colnames for table in data_tables):
935
+ warnings.warn(
936
+ "The FITS format without the 'sacc_ordering' column is deprecated. "
937
+ "Assuming data rows are in the correct order as it was before version 1.0."
938
+ )
939
+ last_index = 0
940
+ for table in data_tables:
941
+ # Create a sequential order assuming rows are stored contiguously
942
+ order = range(last_index, last_index + len(table))
943
+ # Update last_index for the next table
944
+ last_index += len(table)
945
+ # Add the 'sacc_ordering' column to the table
946
+ table.add_column(order, name="sacc_ordering")
947
+
933
948
  # Collect together all the data points from the different sections
934
949
  data_unordered = []
935
950
  index = []
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sacc
3
- Version: 1.0
3
+ Version: 1.0.2
4
4
  Summary: SACC - the LSST/DESC summary statistic data format library
5
5
  Author-email: LSST DESC <joezuntz@googlemail.com>
6
6
  License: BSD-3-Clause
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