Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions cuhpx/sht_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import importlib.resources
import os

import numpy as np
import pkg_resources
import torch
from astropy.io import fits

Expand All @@ -26,8 +26,7 @@
def get_datapath():
global DATAPATH
if DATAPATH is None:
# Using pkg_resources to ensure the path is correctly resolved for installed packages
DATAPATH = pkg_resources.resource_filename('cuhpx', 'data')
DATAPATH = importlib.resources.files('cuhpx').joinpath('data')
return DATAPATH


Expand Down
Loading