Skip to content

Commit 782c221

Browse files
committed
Resolve merge conflicts
2 parents c1acd21 + 94ef033 commit 782c221

File tree

249 files changed

+1613
-2969
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

249 files changed

+1613
-2969
lines changed

.copier-answers.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ include_benchmarks: true
1515
include_docs: true
1616
include_notebooks: true
1717
mypy_type_checking: none
18-
package_name: hipscat
18+
package_name: hats
1919
project_license: BSD
20-
project_name: hipscat
20+
project_name: hats
2121
project_organization: astronomy-commons
2222
python_versions:
2323
- '3.9'

.github/workflows/build-documentation.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: Build documentation
55

66
on:
77
push:
8-
branches: [ main, development ]
8+
branches: [ main ]
99
pull_request:
10-
branches: [ main, development ]
10+
branches: [ main ]
1111

1212
concurrency:
1313
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/pre-commit-ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: Run pre-commit hooks
55

66
on:
77
push:
8-
branches: [ main, development ]
8+
branches: [ main ]
99
pull_request:
10-
branches: [ main, development ]
10+
branches: [ main ]
1111

1212
jobs:
1313
pre-commit-ci:

.github/workflows/testing-and-coverage.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: Unit test and code coverage
55

66
on:
77
push:
8-
branches: [ main, development ]
8+
branches: [ main ]
99
pull_request:
10-
branches: [ main, development ]
10+
branches: [ main ]
1111

1212
jobs:
1313
build:
@@ -31,7 +31,7 @@ jobs:
3131
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3232
- name: Run unit tests with pytest
3333
run: |
34-
python -m pytest --cov=hipscat --cov-report=xml
34+
python -m pytest --cov=hats --cov-report=xml
3535
- name: Upload coverage report to codecov
3636
uses: codecov/codecov-action@v4
3737
with:

README.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
<img src="https://github.com/astronomy-commons/lsdb/blob/main/docs/lincc-logo.png?raw=true" width="300" height="100">
22

3-
# HiPSCat
3+
# HATS
44

55
[![Template](https://img.shields.io/badge/Template-LINCC%20Frameworks%20Python%20Project%20Template-brightgreen)](https://lincc-ppt.readthedocs.io/en/stable/)
66

7-
[![PyPI](https://img.shields.io/pypi/v/hipscat?color=blue&logo=pypi&logoColor=white)](https://pypi.org/project/hipscat/)
8-
[![Conda](https://img.shields.io/conda/vn/conda-forge/hipscat.svg?color=blue&logo=condaforge&logoColor=white)](https://anaconda.org/conda-forge/hipscat)
7+
[![PyPI](https://img.shields.io/pypi/v/hats?color=blue&logo=pypi&logoColor=white)](https://pypi.org/project/hats/)
8+
[![Conda](https://img.shields.io/conda/vn/conda-forge/hats.svg?color=blue&logo=condaforge&logoColor=white)](https://anaconda.org/conda-forge/hats)
99

10-
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/astronomy-commons/hipscat/smoke-test.yml)](https://github.com/astronomy-commons/hipscat/actions/workflows/smoke-test.yml)
11-
[![codecov](https://codecov.io/gh/astronomy-commons/hipscat/branch/main/graph/badge.svg)](https://codecov.io/gh/astronomy-commons/hipscat)
12-
[![Read the Docs](https://img.shields.io/readthedocs/hipscat)](https://hipscat.readthedocs.io/)
13-
[![benchmarks](https://img.shields.io/github/actions/workflow/status/astronomy-commons/hipscat/asv-main.yml?label=benchmarks)](https://astronomy-commons.github.io/hipscat/)
10+
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/astronomy-commons/hats/smoke-test.yml)](https://github.com/astronomy-commons/hats/actions/workflows/smoke-test.yml)
11+
[![codecov](https://codecov.io/gh/astronomy-commons/hats/branch/main/graph/badge.svg)](https://codecov.io/gh/astronomy-commons/hats)
12+
[![Read the Docs](https://img.shields.io/readthedocs/hats)](https://hats.readthedocs.io/)
13+
[![benchmarks](https://img.shields.io/github/actions/workflow/status/astronomy-commons/hats/asv-main.yml?label=benchmarks)](https://astronomy-commons.github.io/hats/)
1414

15-
## Hierarchical Progressive Survey Catalog
15+
## Hierarchical Adaptive Tiling Scheme
1616

17-
A HiPSCat catalog is a partitioning of objects on a sphere. Its purpose is for
17+
A HATS catalog is a partitioning of objects on a sphere. Its purpose is for
1818
storing data from large astronomy surveys, but could probably be used for other
1919
use cases where you have large data with some spherical properties.
2020

21-
Check out our [ReadTheDocs site](https://hipscat.readthedocs.io/en/stable/)
21+
Check out our [ReadTheDocs site](https://hats.readthedocs.io/en/stable/)
2222
for more information on partitioning, installation, and contributing.
2323

2424
See related projects:
2525

26-
* HiPSCat Import ([on GitHub](https://github.com/astronomy-commons/hipscat-import))
27-
([on ReadTheDocs](https://hipscat-import.readthedocs.io/en/stable/))
26+
* HATS Import ([on GitHub](https://github.com/astronomy-commons/hats-import))
27+
([on ReadTheDocs](https://hats-import.readthedocs.io/en/stable/))
2828
* LSDB ([on GitHub](https://github.com/astronomy-commons/lsdb))
2929
([on ReadTheDocs](https://lsdb.readthedocs.io/en/stable/))
3030

3131
## Contributing
3232

33-
[![GitHub issue custom search in repo](https://img.shields.io/github/issues-search/astronomy-commons/hipscat?color=purple&label=Good%20first%20issues&query=is%3Aopen%20label%3A%22good%20first%20issue%22)](https://github.com/astronomy-commons/hipscat/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22)
33+
[![GitHub issue custom search in repo](https://img.shields.io/github/issues-search/astronomy-commons/hats?color=purple&label=Good%20first%20issues&query=is%3Aopen%20label%3A%22good%20first%20issue%22)](https://github.com/astronomy-commons/hats/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22)
3434

35-
See the [contribution guide](https://hipscat.readthedocs.io/en/stable/guide/contributing.html)
35+
See the [contribution guide](https://hats.readthedocs.io/en/stable/guide/contributing.html)
3636
for completed installation instructions and contribution best practices.
3737

3838
## Acknowledgements

benchmarks/asv.conf.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// you know what you are doing.
44
"version": 1,
55
// The name of the project being benchmarked.
6-
"project": "hipscat",
6+
"project": "hats",
77
// The project's homepage.
8-
"project_url": "https://github.com/astronomy-commons/hipscat",
8+
"project_url": "https://github.com/astronomy-commons/hats",
99
// The URL or local path of the source code repository for the
1010
// project being benchmarked.
1111
"repo": "..",
@@ -33,7 +33,7 @@
3333
// variable.
3434
"environment_type": "virtualenv",
3535
// the base URL to show a commit for the project.
36-
"show_commit_url": "https://github.com/astronomy-commons/hipscat/commit",
36+
"show_commit_url": "https://github.com/astronomy-commons/hats/commit",
3737
// The Pythons you'd like to test against. If not provided, defaults
3838
// to the current version of Python used to run `asv`.
3939
"pythons": [

benchmarks/benchmarks.py

+9-11
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@
77

88
import numpy as np
99

10-
import hipscat.pixel_math as hist
11-
import hipscat.pixel_math.healpix_shim as hp
12-
from hipscat.catalog import Catalog, PartitionInfo
13-
from hipscat.catalog.association_catalog.partition_join_info import PartitionJoinInfo
14-
from hipscat.catalog.catalog_info import CatalogInfo
15-
from hipscat.io.paths import pixel_catalog_files
16-
from hipscat.pixel_math import HealpixPixel
17-
from hipscat.pixel_tree import PixelAlignment, align_trees
18-
from hipscat.pixel_tree.pixel_tree import PixelTree
10+
import hats.pixel_math as hist
11+
import hats.pixel_math.healpix_shim as hp
12+
from hats.catalog import Catalog, PartitionInfo, TableProperties
13+
from hats.catalog.association_catalog.partition_join_info import PartitionJoinInfo
14+
from hats.io.paths import pixel_catalog_files
15+
from hats.pixel_math import HealpixPixel
16+
from hats.pixel_tree import PixelAlignment, align_trees
17+
from hats.pixel_tree.pixel_tree import PixelTree
1918

2019

2120
def time_test_alignment_even_sky():
@@ -29,12 +28,11 @@ def time_test_alignment_even_sky():
2928

3029
def time_test_cone_filter_multiple_order():
3130
"""Create a catalog cone filter where we have multiple orders in the catalog"""
32-
catalog_info = CatalogInfo(
31+
catalog_info = TableProperties(
3332
**{
3433
"catalog_name": "test_name",
3534
"catalog_type": "object",
3635
"total_rows": 10,
37-
"epoch": "J2000",
3836
"ra_column": "ra",
3937
"dec_column": "dec",
4038
}

docs/_static/gaia.png

19.3 KB
Loading

docs/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
# -- Project information -----------------------------------------------------
1515
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
1616

17-
project = "hipscat"
17+
project = "hats"
1818
copyright = "2023, LINCC Frameworks"
1919
author = "LINCC Frameworks"
20-
release = version("hipscat")
20+
release = version("hats")
2121
# for example take major/minor
2222
version = ".".join(release.split(".")[:2])
2323

docs/getting_started.rst

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
Getting Started with HATS
2+
=========================
3+
4+
Installation
5+
------------
6+
7+
The latest release version of HATS is available to install with `pip <https://pypi.org/project/hats/>`_ (with conda coming soon).
8+
9+
.. code-block:: bash
10+
11+
python -m pip install hats
12+
13+
.. hint::
14+
15+
We recommend using a virtual environment. Before installing the package, create and activate a fresh
16+
environment. Here are some examples with different tools:
17+
18+
.. tab-set::
19+
20+
.. tab-item:: venv
21+
22+
.. code-block:: bash
23+
24+
python -m venv ./hats_env
25+
source ./hats_env/bin/activate
26+
27+
.. tab-item:: pyenv
28+
29+
With the pyenv-virtualenv plug-in:
30+
31+
.. code-block:: bash
32+
33+
pyenv virtualenv 3.11 hats_env
34+
pyenv local hats_env
35+
36+
We recommend Python versions **>=3.9, <=3.12**.
37+
38+
HATS can also be installed from source on `GitHub <https://github.com/astronomy-commons/hats>`_.
39+
40+
41+
LSDB
42+
----
43+
44+
For the most part, we recommend accessing and processing HATS data using the `LSDB package
45+
<https://github.com/astronomy-commons/lsdb>`_ framework. LSDB provides a variety of utility
46+
functions as well as a lazy, distributed execution framework using Dask.
47+
48+
For detail on LSDB, see the `readthedocs site <https://docs.lsdb.io/en/stable/>`_.

docs/guide/contributing.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Contributing to hipscat
1+
Contributing to hats
22
===============================================================================
33

44
Find (or make) a new GitHub issue
@@ -61,14 +61,14 @@ Notes:
6161

6262
Native prebuilt binaries for healpy on Apple Silicon Macs
6363
`do not yet exist <https://healpy.readthedocs.io/en/latest/install.html#binary-installation-with-pip-recommended-for-most-other-python-users>`_,
64-
so it's recommended to install via conda before proceeding to hipscat.
64+
so it's recommended to install via conda before proceeding to hats.
6565

6666
.. code-block:: bash
6767
6868
$ conda config --add channels conda-forge
6969
$ conda install healpy
70-
$ git clone https://github.com/astronomy-commons/hipscat
71-
$ cd hipscat
70+
$ git clone https://github.com/astronomy-commons/hats
71+
$ cd hats
7272
$ pip install -e .
7373
7474
When installing dev dependencies, make sure to include the single quotes.

docs/guide/directory_scheme.rst

+29-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
HiPSCat Directory Scheme
1+
HATS Directory Scheme
22
===============================================================================
33

44
Partitioning Scheme
@@ -11,22 +11,40 @@ In areas of the sky with more objects, we use smaller pixels, so that all the
1111
resulting pixels should contain similar counts of objects (within an order of
1212
magnitude).
1313

14+
The following figure is a possible HATS partitioning. Note:
15+
16+
* darker/bluer areas are stored in low order / high area tiles
17+
* lighter/yellower areas are stored in higher order / lower area tiles
18+
* the galactic plane is very prominent!
19+
20+
.. figure:: /_static/gaia.png
21+
:class: no-scaled-link
22+
:scale: 80 %
23+
:align: center
24+
:alt: A possible HEALPix distribution for Gaia DR3
25+
26+
A possible HEALPix distribution for Gaia DR3.
27+
1428
File structure
1529
-------------------------------------------------------------------------------
1630

1731
The catalog reader expects to find files according to the following partitioned
1832
structure:
1933

2034
.. code-block::
21-
35+
:class: no-copybutton
36+
2237
__ /path/to/catalogs/<catalog_name>/
23-
|__ catalog_info.json
2438
|__ partition_info.csv
25-
|__ Norder=1/
26-
| |__ Dir=0/
27-
| |__ Npix=0.parquet
28-
| |__ Npix=1.parquet
29-
|__ Norder=J/
30-
|__ Dir=10000/
31-
|__ Npix=K.parquet
32-
|__ Npix=M.parquet
39+
|__ properties
40+
|__ dataset/
41+
|__ _common_metadata
42+
|__ _metadata
43+
|__ Norder=1/
44+
| |__ Dir=0/
45+
| |__ Npix=0.parquet
46+
| |__ Npix=1.parquet
47+
|__ Norder=J/
48+
|__ Dir=10000/
49+
|__ Npix=K.parquet
50+
|__ Npix=M.parquet

0 commit comments

Comments
 (0)