Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Commit

Permalink
rename test file
Browse files Browse the repository at this point in the history
  • Loading branch information
kosack committed Jan 25, 2017
1 parent 4dbff67 commit 550b31e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions ctapipe_resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,20 @@
__all__ = ['resource_filename', 'gamma_test_file']


def resource_filename(filename):
def _resource_filename(filename):
"""Return the full pathname of a particular resource"""
return pkg_resources.resource_filename(__name__, filename)

def get(resource_name):
""" get the filename for a resource """
return _resource_filename(resource_name)

# some helper attributes

gamma_test_file = get('gamma_test.simtel.gz')

# a larger test file, from prod3. original name was
# gamma_20deg_0deg_run7514___cta-prod3_desert-2150m-Paranal-HB9-FA_cone10.simtel.gz
test_events_file = get('gamma_test_large.simtel.gz')


gamma_test_file = resource_filename('gamma_test.simtel.gz')

0 comments on commit 550b31e

Please sign in to comment.