diff --git a/gdpyc/core.py b/gdpyc/core.py index 3bc6f4c..d852fe6 100644 --- a/gdpyc/core.py +++ b/gdpyc/core.py @@ -11,7 +11,6 @@ import warnings import numpy as np -import pkg_resources from astropy import units as u from astropy.coordinates import Galactic from astropy.io import fits @@ -27,7 +26,7 @@ class Map(object): A class with common methods for HEALpix maps. """ - _data_path = pkg_resources.resource_filename("gdpyc", "data") + _data_path = os.path.join(os.path.dirname(__file__), "data") _map_type = None _maps = [] diff --git a/gdpyc/data.py b/gdpyc/data.py index 3a49fdb..ba65db3 100644 --- a/gdpyc/data.py +++ b/gdpyc/data.py @@ -6,7 +6,6 @@ """ import os -import pkg_resources from astropy.io import fits from astropy.utils.data import get_readable_fileobj @@ -159,7 +158,7 @@ def get_lowres_maps(data_dir): def main(): - data_dir = pkg_resources.resource_filename("gdpyc", "data") + data_dir = os.path.join(os.path.dirname(__file__), "data") # get_map('HI4PI', data_dir) # get_map('DL', data_dir)