Skip to content

Commit

Permalink
Use hipscat for healpix dependency. (#346)
Browse files Browse the repository at this point in the history
* Use hipscat for healpix dependency.

* isort .
  • Loading branch information
delucchi-cmu committed Jul 19, 2024
1 parent bace160 commit 6c4451f
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 10 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ dynamic = ["version"]
dependencies = [
"dask[complete]>=2024.3.0", # Includes dask expressions.
"deprecated",
"healpy",
"hipscat >=0.3.5",
"ipykernel", # Support for Jupyter notebooks
"numpy",
Expand Down
2 changes: 1 addition & 1 deletion src/hipscat_import/catalog/map_reduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pickle
from typing import Any, Dict, Union

import healpy as hp
import hipscat.pixel_math.healpix_shim as hp
import numpy as np
import pyarrow as pa
import pyarrow.parquet as pq
Expand Down
2 changes: 1 addition & 1 deletion src/hipscat_import/catalog/resume_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from dataclasses import dataclass, field
from typing import List, Optional, Tuple

import healpy as hp
import hipscat.pixel_math.healpix_shim as hp
import numpy as np
from hipscat import pixel_math
from hipscat.io import FilePointer, file_io
Expand Down
2 changes: 1 addition & 1 deletion src/hipscat_import/catalog/sparse_histogram.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Sparse 1-D histogram of healpix pixel counts."""

import healpy as hp
import hipscat.pixel_math.healpix_shim as hp
import numpy as np
from scipy.sparse import csc_array, load_npz, save_npz, sparray

Expand Down
2 changes: 1 addition & 1 deletion src/hipscat_import/margin_cache/margin_cache_arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from dataclasses import dataclass, field
from typing import Any, Dict, List, Union

import healpy as hp
import hipscat.pixel_math.healpix_shim as hp
from hipscat.catalog import Catalog
from hipscat.catalog.margin_cache.margin_cache_catalog_info import MarginCacheCatalogInfo
from hipscat.io.validation import is_valid_catalog
Expand Down
2 changes: 1 addition & 1 deletion src/hipscat_import/margin_cache/margin_cache_map_reduce.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import healpy as hp
import hipscat.pixel_math.healpix_shim as hp
import numpy as np
import pandas as pd
import pyarrow as pa
Expand Down
2 changes: 1 addition & 1 deletion src/hipscat_import/soap/resume_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from dataclasses import dataclass, field
from typing import List, Optional, Tuple

import healpy as hp
import hipscat.pixel_math.healpix_shim as hp
import numpy as np
from hipscat.catalog import Catalog
from hipscat.io import file_io
Expand Down
2 changes: 1 addition & 1 deletion tests/hipscat_import/catalog/test_map_reduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import pickle
from io import StringIO

import healpy as hp
import hipscat.pixel_math as hist
import hipscat.pixel_math.healpix_shim as hp
import numpy as np
import numpy.testing as npt
import pandas as pd
Expand Down
2 changes: 1 addition & 1 deletion tests/hipscat_import/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import re
from pathlib import Path

import healpy as hp
import hipscat.pixel_math.healpix_shim as hp
import numpy as np
import numpy.testing as npt
import pandas as pd
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

import healpy as hp
import hipscat.pixel_math.healpix_shim as hp
import numpy as np
import pandas as pd
import pytest
Expand Down

0 comments on commit 6c4451f

Please sign in to comment.