bd-j / sedpy

Utilities for astronomical spectral energy distributions
https://sedpy.readthedocs.io/en/latest/
MIT License
28 stars 16 forks source link

python3 compatibility #3

Closed dweisz closed 8 years ago

dweisz commented 8 years ago

Trying to install using python3.4.4, and I get the following errors about print statements. Otherwise, I think it looks python3.x compatible.

... Extracting sedpy-0.1.0-py3.4.egg to /anaconda/lib/python3.4/site-packages File "/anaconda/lib/python3.4/site-packages/sedpy-0.1.0-py3.4.egg/sedpy/attenuation.py", line 242 print "make sure of your power law breaks" ^ SyntaxError: Missing parentheses in call to 'print'

File "/anaconda/lib/python3.4/site-packages/sedpy-0.1.0-py3.4.egg/sedpy/yanny.py", line 497 print 'typedef is:\n',typedef ^ SyntaxError: Missing parentheses in call to 'print' ...

bd-j commented 8 years ago

oh yeah. that's the problem with bd-j/scombine#4, for some reason I wasn't watching sedpy and didn't see this. Fixing now.

bd-j commented 8 years ago

alright, sedpy should be working in python3 as of 3ceb47f9b18b918457833a3031367c3191e6cb67

dweisz commented 8 years ago

looks good now. Thanks!