Skip to content

Commit

Permalink
use print statements for 32-64-bit compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Nov 2, 2016
1 parent adfc6ec commit 1c02cb4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions pydl/pydlutils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ def djs_laxisgen(dims, iaxis=0):
Examples
--------
>>> from pydl.pydlutils.misc import djs_laxisgen
>>> djs_laxisgen([4,4])
array([[0, 0, 0, 0],
[1, 1, 1, 1],
[2, 2, 2, 2],
[3, 3, 3, 3]], dtype=int32)
>>> print(djs_laxisgen([4,4]))
[[0 0 0 0]
[1 1 1 1]
[2 2 2 2]
[3 3 3 3]]
"""
ndimen = len(dims)
if ndimen == 1:
Expand Down Expand Up @@ -98,11 +98,11 @@ def djs_laxisnum(dims, iaxis=0):
Examples
--------
>>> from pydl.pydlutils.misc import djs_laxisnum
>>> djs_laxisnum([4,4])
array([[0, 0, 0, 0],
[1, 1, 1, 1],
[2, 2, 2, 2],
[3, 3, 3, 3]], dtype=int32)
>>> print(djs_laxisnum([4,4]))
[[0 0 0 0]
[1 1 1 1]
[2 2 2 2]
[3 3 3 3]]
"""
ndimen = len(dims)
result = np.zeros(dims, dtype='i4')
Expand Down
4 changes: 2 additions & 2 deletions pydl/pydlutils/sdss.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ def sdss_objid(run, camcol, field, objnum, rerun=301, skyversion=None):
Examples
--------
>>> from pydl.pydlutils.sdss import sdss_objid
>>> sdss_objid(3704,3,91,146)
array([1237661382772195474])
>>> print(sdss_objid(3704,3,91,146))
[1237661382772195474]
"""
if skyversion is None:
skyversion = default_skyversion()
Expand Down

0 comments on commit 1c02cb4

Please sign in to comment.