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.
- {sacc-1.0/sacc.egg-info → sacc-1.0.2}/PKG-INFO +1 -1
- {sacc-1.0 → sacc-1.0.2}/sacc/__init__.py +1 -1
- {sacc-1.0 → sacc-1.0.2}/sacc/sacc.py +15 -0
- {sacc-1.0 → sacc-1.0.2/sacc.egg-info}/PKG-INFO +1 -1
- {sacc-1.0 → sacc-1.0.2}/.git_archival.txt +0 -0
- {sacc-1.0 → sacc-1.0.2}/.gitattributes +0 -0
- {sacc-1.0 → sacc-1.0.2}/.github/workflows/desc-ci.yml +0 -0
- {sacc-1.0 → sacc-1.0.2}/.github/workflows/publish.yml +0 -0
- {sacc-1.0 → sacc-1.0.2}/.gitignore +0 -0
- {sacc-1.0 → sacc-1.0.2}/.readthedocs.yml +0 -0
- {sacc-1.0 → sacc-1.0.2}/LICENSE +0 -0
- {sacc-1.0 → sacc-1.0.2}/MANIFEST.in +0 -0
- {sacc-1.0 → sacc-1.0.2}/README.md +0 -0
- {sacc-1.0 → sacc-1.0.2}/doc/Makefile +0 -0
- {sacc-1.0 → sacc-1.0.2}/doc/format.md +0 -0
- {sacc-1.0 → sacc-1.0.2}/doc/requirements.txt +0 -0
- {sacc-1.0 → sacc-1.0.2}/doc/source/Makefile +0 -0
- {sacc-1.0 → sacc-1.0.2}/doc/source/api.rst +0 -0
- {sacc-1.0 → sacc-1.0.2}/doc/source/conf.py +0 -0
- {sacc-1.0 → sacc-1.0.2}/doc/source/covariance.rst +0 -0
- {sacc-1.0 → sacc-1.0.2}/doc/source/data_types.rst +0 -0
- {sacc-1.0 → sacc-1.0.2}/doc/source/index.rst +0 -0
- {sacc-1.0 → sacc-1.0.2}/doc/source/intro.rst +0 -0
- {sacc-1.0 → sacc-1.0.2}/doc/source/sacc.rst +0 -0
- {sacc-1.0 → sacc-1.0.2}/doc/source/tracers.rst +0 -0
- {sacc-1.0 → sacc-1.0.2}/doc/source/utils.rst +0 -0
- {sacc-1.0 → sacc-1.0.2}/doc/source/windows.rst +0 -0
- {sacc-1.0 → sacc-1.0.2}/examples/.gitignore +0 -0
- {sacc-1.0 → sacc-1.0.2}/examples/CMB_LSS_read.ipynb +0 -0
- {sacc-1.0 → sacc-1.0.2}/examples/CMB_LSS_write.ipynb +0 -0
- {sacc-1.0 → sacc-1.0.2}/examples/Convert_DES_Sacc.ipynb +0 -0
- {sacc-1.0 → sacc-1.0.2}/examples/Convert_KIDS_Sacc.ipynb +0 -0
- {sacc-1.0 → sacc-1.0.2}/examples/Create_Sacc.ipynb +0 -0
- {sacc-1.0 → sacc-1.0.2}/examples/README.md +0 -0
- {sacc-1.0 → sacc-1.0.2}/examples/SACC_for_clusters.ipynb +0 -0
- {sacc-1.0 → sacc-1.0.2}/examples/SACC_read.ipynb +0 -0
- {sacc-1.0 → sacc-1.0.2}/examples/SACC_write.ipynb +0 -0
- {sacc-1.0 → sacc-1.0.2}/examples/demo_sacc_for_clusters_N+M.ipynb +0 -0
- {sacc-1.0 → sacc-1.0.2}/examples/example-txpipe-sacc1.sacc +0 -0
- {sacc-1.0 → sacc-1.0.2}/pyproject.toml +0 -0
- {sacc-1.0 → sacc-1.0.2}/requirements.txt +0 -0
- {sacc-1.0 → sacc-1.0.2}/sacc/covariance.py +0 -0
- {sacc-1.0 → sacc-1.0.2}/sacc/data_types.py +0 -0
- {sacc-1.0 → sacc-1.0.2}/sacc/tracers.py +0 -0
- {sacc-1.0 → sacc-1.0.2}/sacc/utils.py +0 -0
- {sacc-1.0 → sacc-1.0.2}/sacc/windows.py +0 -0
- {sacc-1.0 → sacc-1.0.2}/sacc.egg-info/SOURCES.txt +0 -0
- {sacc-1.0 → sacc-1.0.2}/sacc.egg-info/dependency_links.txt +0 -0
- {sacc-1.0 → sacc-1.0.2}/sacc.egg-info/requires.txt +0 -0
- {sacc-1.0 → sacc-1.0.2}/sacc.egg-info/top_level.txt +0 -0
- {sacc-1.0 → sacc-1.0.2}/setup.cfg +0 -0
- {sacc-1.0 → sacc-1.0.2}/test/__init__.py +0 -0
- {sacc-1.0 → sacc-1.0.2}/test/data/.gitignore +0 -0
- {sacc-1.0 → sacc-1.0.2}/test/make_test_data.py +0 -0
- {sacc-1.0 → sacc-1.0.2}/test/test_cluster_data_tracers.py +0 -0
- {sacc-1.0 → sacc-1.0.2}/test/test_sacc.py +0 -0
@@ -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 = []
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{sacc-1.0 → sacc-1.0.2}/LICENSE
RENAMED
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
|