Skip to content

Commit

Permalink
remove __develop__ = True
Browse files Browse the repository at this point in the history
  • Loading branch information
rodluger committed Jun 28, 2016
1 parent 5155bf8 commit c0cef90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion everest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# Version number
__version__ = "1.0"
__develop__ = True
__develop__ = False

# Was everest imported from setup.py?
try:
Expand Down
5 changes: 3 additions & 2 deletions everest/usertools/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def _EverestVersion():
data = handler.read().decode('utf-8')
if data.endswith('\n'):
data = data[:-1]

return data

def _DownloadFile(EPIC, name = 'lc.fits', clobber = False):
Expand All @@ -75,7 +76,7 @@ def _DownloadFile(EPIC, name = 'lc.fits', clobber = False):

# Get the url
mast_version = _EverestVersion()
url = MAST_ROOT + 'c%02d/' % campaign + ('%09d' % EPIC)[:4] + '00000/' + ('%09d' % EPIC)[4:] + \
url = MAST_ROOT + 'c%02d/' % campaign + ('%09d' % EPIC)[:4] + '00000/' + ('%09d/' % EPIC)[4:] + \
'hlsp_everest_k2_llc_%d-c%02d_kepler_v%s_%s' % (EPIC, campaign, mast_version, name)

# Get the local file name
Expand All @@ -84,7 +85,7 @@ def _DownloadFile(EPIC, name = 'lc.fits', clobber = False):
'hlsp_everest_k2_llc_%d-c%02d_kepler_v%s_%s' % (EPIC, campaign, mast_version, name))
if not os.path.exists(os.path.dirname(filename)):
os.makedirs(os.path.dirname(filename))

# Download the data
r = urllib.request.Request(url)
handler = urllib.request.urlopen(r)
Expand Down

0 comments on commit c0cef90

Please sign in to comment.