Skip to content

Commit

Permalink
added warning to install Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
mommermi committed Oct 8, 2018
1 parent b8d57bf commit 5b6dfb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions _pp_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
# only import if Python3 is used
if sys.version_info > (3, 0):
from past.builtins import execfile
else:
warnings.warn(('This is 2018. You should really be using Python 3 by now. '
'PP now has only limited support for Python 2.7. Please '
'install Python 3 (preferentially Anaconda 3).'))


def setup_diagnostics():
Expand Down
4 changes: 2 additions & 2 deletions catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ def download_catalog(self, ra_deg, dec_deg, rad_deg,
+ 'a {:.2f} deg radius').format(self.catalogname,
ra_deg, dec_deg,
rad_deg),
end=' ')
sys.stdout.flush()
end=' ', flush=True)

logging.info(('query Vizier for {:s} at {:7.3f}/{:+.3f} in '
+ 'a {:.2f} deg radius').format(self.catalogname,
ra_deg, dec_deg,
Expand Down

0 comments on commit 5b6dfb6

Please sign in to comment.