Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error when importing splat #117

Open
ECGonzales opened this issue Feb 21, 2018 · 3 comments
Open

Syntax error when importing splat #117

ECGonzales opened this issue Feb 21, 2018 · 3 comments

Comments

@ECGonzales
Copy link

When I try to import splat I get this error.

In [3]: import splat
File "/Users/eileengonzales/Dropbox/BDNYC/BDNYC_Research/Python/Modules/splat/splat/core.py", line 5322
plotSpectrum(sp1,spcomp,sp1-spcomp,**kwargs,labels=[sp1.name,sp2.name,'{} = {}'.format(statistic,stat)])
^
SyntaxError: invalid syntax

If it's useful the package version I have are:
astropy==1.2.1
astroquery==0.3.5
bokeh==0.12.4
Flask==0.12
matplotlib==2.0.0
numpy==1.11.1
pandas==0.19.2
requests==2.12.4
scipy==0.17.0

@aburgasser
Copy link
Owner

Thanks Eileen - what version of python are you running?

it seems the error is catching on the '{} = {}'.format() syntax - if you change the single quotes to double quotes, does it crash again?

@ECGonzales
Copy link
Author

It still crashes with double quotes. I'm running 2.7.13

@aburgasser
Copy link
Owner

hmm, can't reproduce in 2.7.12, I'm a bit perplexed by this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants