Skip to content
Draft
Show file tree
Hide file tree
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
3 changes: 1 addition & 2 deletions gdpyc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 = []

Expand Down
3 changes: 1 addition & 2 deletions gdpyc/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"""
import os

import pkg_resources
from astropy.io import fits
from astropy.utils.data import get_readable_fileobj

Expand Down Expand Up @@ -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)
Expand Down